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
fasthttp client errors with io.Pipe() #1408
Comments
I found this : golang/go@3d2321f
maybe should remove this panic? |
I'm trying to understand what is causing this. It looks like fasthttp tries to read from I don't have the time, but could you debug this a bit more and see why this is happening? I'm afraid that if we remove the panic it will just keep retrying the Read until it returns an error using up a lot of CPU. And adding a random sleep in this case feels bad as well. |
@erikdubbelboer The issue happens where Created PR #1417 |
Fixed in #1417 |
test code here:
and result:
=== RUN TestPipe
client_test.go:46: fatal recover triggered {recover 15 0 BUG: io.Reader returned 0, nil }
client_test.go:67: upload file write field failed {error 26 0 io: read/write on closed pipe}
--- FAIL: TestPipe (0.00s)
The text was updated successfully, but these errors were encountered: