Conversation
|
Fyi there is a similar PR already open #102. |
|
Oh, sorry I missed this one out! The timeout in #102 is a good touch! Feel free to compare the 2 approaches. I don't mind either to be merged. (I would probably need to add timeout handling as well) |
4b2a49b to
df1d9e9
Compare
|
@tillrohrmann I couldn't resist but updating my PR to also implement timeout 🙈 , also fixed a subtle issue that caused the future to hang indefinitely if the stream was reset. This PR is now identical to yours in behaviour but with more code 😆 Again, feel free to merge yours (I have tested it) with and without H2 Pool The only benefit of my change is that the draining is part of the |
Summary: This PR makes sure the input request stream is drained before the output stream is closed/dropped. This make sure stream is closed gracefully with no errors.
|
I'll leave it up to @slinkydeveloper to decide which PR to merge. Both are doing the same thing ultimately. Your approach is to add it directly to the |
|
Sorry @muhamadazmy i went with less code :) |
|
@slinkydeveloper No worries man! 😄 It makes sense |
Make sure to drain the request stream
Summary:
This PR makes sure the input request stream is drained before
the output stream is closed/dropped. This make sure stream
is closed gracefully with no errors.