-
Notifications
You must be signed in to change notification settings - Fork 69
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
http2_client request crashing in http2_stream.half_closed_local #66
Comments
I have a patch for this. I'll try to submit either today or tomorrow when I'm free. |
After looking at master branch, it looks like this might be fixed already? Have you updated upstream master lately? |
I have been pushing to master, resolving issues found with https://github.com/summerwind/h2spec and it's entirely possible this has been fixed. I meant to ask if there's a specific test case anybody has for this. I'm happy to include it. |
My HTTP/2 knowledge is a bit limited but the bug was that http2_stream:half_closed_local was getting a 'recv_es' message. However, it seems that http2_stream seemed to have "jumped the gun" or something and tried to detect an 'end-of-stream' flag in the last frame and then close the stream. I guess Apple's APNs servers don't send an END_STREAM in the last frame? Basically, there was a disconnect between receiving frames and closing the stream. I'm not sure what the test case is for this but...hopefully this info gives you an idea of what test case you would add. :/ |
Apparently
while |
I submitted a pull request on what has worked for me. Hope it helps. |
Thanks, but I think this is related to #57. APNS does not send |
if I had to guess, the timeout stuff is happening because the chatterbox client is exiting with reason chatterbox/src/h2_connection.erl Line 343 in d59b541
So you'll need to monitor the process or trap exits and handle them yourself I think (could be wrong) |
Should be getting resolved in #127 Going to close this since it is 2 years old. |
I'm using
http2_client.start_link/3
to connect to a server and send requests. With bothsync
andasync
requests I get the following crash when sending the first request:The text was updated successfully, but these errors were encountered: