-
Notifications
You must be signed in to change notification settings - Fork 18k
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
mime/multipart: part.Reader hangs on an open stream even if entire multipart data is available #15431
Comments
For some background, the reason I want to use I did some experiments and the |
For anyone else who runs into this issue, here's a working reimplementation of A few caveats:
|
CL https://golang.org/cl/32032 mentions this issue. |
This is fixed by CL https://golang.org/cl/32092 instead so I'm closing this issue. |
We still need to add a test. |
Please answer these questions before submitting your issue. Thanks!
go version
)?go1.6.2
go env
)?darwin/amd64 (Mac OS/X 10.11.4)
http://play.golang.org/p/D5so_L8JDD
At the very least, all available parts successfully read before the reader hangs on more data from the socket. In this particular example the multipart reader can even reach "EOF" because once it reaches the postamble, it's impossible for there to be any more parts.
The multipart reader hangs before even reading the first part. Presumably because it's trying to peek ahead but the socket doesn't have enough data available for the peek buffer.
The text was updated successfully, but these errors were encountered: