-
Notifications
You must be signed in to change notification settings - Fork 241
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
InputStream as passed a body gets closed by different thread when client closes connection prematurely #535
Comments
Similar issue was described in #454. It's unclear if Netty provides a good way of dealing with the situation like this, at least I didn't find any (the issue in Netty repo is open since 2017). |
So it starts from the Netty... bummer. |
There are multiple things happening here. As far as |
Reproduction is pretty simple:
{:body my-is}
curl
into the terminal - by default curl does not allow that)I run into following exception (OkHttp, or rather okio which backs said stream does not support that use-case):
Body + proxy class which delegates to the original stream (for debugging):
Also simple logging snippet which works ok with the test scenario:
I think that this is not right
The text was updated successfully, but these errors were encountered: