Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One Time Auth开启后,特定请求失败 #461

Closed
defia opened this issue Jun 13, 2016 · 4 comments
Closed

One Time Auth开启后,特定请求失败 #461

defia opened this issue Jun 13, 2016 · 4 comments
Labels
Milestone

Comments

@defia
Copy link

defia commented Jun 13, 2016

大量cli (x.x.x.x:x) send request body error short write POST x.x.x.x.com:8080报错

func main() {
    uri, _ := url.Parse("http://127.0.0.1:18080")
    http.ProxyURL(uri)
    http.PostForm("http://www.test.com/", url.Values{"a": {"b"}})
}

这个简单的代码就可以验证该问题,且shadowsocks-go无此问题.

defia added a commit to defia/cow that referenced this issue Jun 13, 2016
defia added a commit to defia/cow that referenced this issue Jun 13, 2016
@defia
Copy link
Author

defia commented Jun 13, 2016

see #462

@cyfdecyf
Copy link
Owner

谢谢 pr。看来是有某个 Write 的实现没有遵照 io.Writer 接口的约定

Write must return a non-nil error if it returns n < len(p).

我想找到这个有问题的 Write 实现来修复。

@defia
Copy link
Author

defia commented Jun 14, 2016

谢谢回复,了解了

@cyfdecyf
Copy link
Owner

问题出在 shadowsocks 的实现里,已经修复

这几天用下来没问题的话周末发个新版吧。

@cyfdecyf cyfdecyf added the bug label Jun 16, 2016
@cyfdecyf cyfdecyf added this to the 0.9.8 milestone Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants