Skip to content
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

Call gun:cancel may lead to disconnect the whole connection. #97

Open
rody-liu opened this issue Mar 4, 2020 · 0 comments
Open

Call gun:cancel may lead to disconnect the whole connection. #97

rody-liu opened this issue Mar 4, 2020 · 0 comments
Milestone

Comments

@rody-liu
Copy link

rody-liu commented Mar 4, 2020

After called gun:cancel, the corresponding stream would be removed in the state machine.
But it's possible it's response on the way, when gun receive the response, will disconnect the tcp connection with the reason:
{error, {connection_error, stream_closed,
'HEADERS frame received on a stream in closed or half-closed state. (RFC7540 5.1)'}, State}

In the function cow_http2_machine:client_headers_frame, the context stream can't be red out.

@essen essen added this to the Gun 2.0 milestone Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants