Skip to content

http/2 connection unnecessary closed when single transfer stopped #2237

@bagder

Description

@bagder

I did this

"lali .cpp" reported this issue on the mailing list:

The client gives the server 1 second to respond, the server intentionally
chooses a random value between 0 to 2000 ms to wait before replying to the
client. So sometimes the request doesn't "complete" and so libcurl
"tearsdown" the connection when curl_multi_remove_handle is called(which
ideally it shouldn't for http2)

There are example code provided by the reporter to reproduce the issue in the email.

I expected the following

If the connection is setup, removing an individual HTTP/2 transfer should not close the connection.

curl/libcurl version

libcurl 7.57.0

operating system

Probably not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions