Thanks, I'll give this a closer look and test out a little before I merge. Regarding the error code, I think it is time for us to go through and check if we shouldn't add a few more error codes for h2 specific situations that would be helpful if we exposed better to users instead of shoveling everything under a generic "http2 error" code.
I did this
Run h2 server. With --early-response option, this server returns HTTP response without waiting for upload completion. Additionally, it sends RST_STREAM if it expects request body from client:
Then do some large upload from curl:
And it stuck.
Background info: nghttp2/nghttp2#669
I expected the following
curl should detect stream closure, and exit. Since upload was not completed, with some error code (not sure which one we should use here).
I build curl from git master
The text was updated successfully, but these errors were encountered: