-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
HTTP/2 connection reuse doesn't respect maximum concurrent streams #4779
Comments
I'm confused. You seem to report a crash but why does the title mention "upper limit" ? |
The crash is only because of your patch? So what exactly is the problem with the unmodified libcurl and your example? |
Unmodified libcurl 7.67.0 has the issue for connection re-use. A fix for same was committed to master with #4732 . This fix doesn't work as same connection is being re-used continuously for parallel streams without hitting limit of max concurrent connections, indicated same here: https://curl.haxx.se/mail/lib-2019-12/0073.html. |
So this title is more appropriate? |
yes. |
does #4784 make things better? |
Got this crash during one of the run. All call run model is same - parallel HTTP/2 transfers.
I also got below once - but this should be different issue and shall check from application side first.
|
Can you clarify what you ran then? What libcurl version and patch and what application code? |
libcurl version: 7.67.0 with above fix and #4732 Using the example: https://gist.github.com/kunalekawde/6a5d7646fca9d82c50e1e31147a85686 Case 1: Case 2:
I'm still trying to reproduce the crash reported earlier using this example. |
I ran the example with plain version 2 (not prior knowledge, I don't have any such servers around) and it seems to work for me. I can't see any crash or misbehavior. As for what max concurrency to use in that check, I think maybe we should use the minimum value of |
So, mix of HTTP/1.1 and plain HTTP/2.0 transfers to same server worked fine? or was this with only HTTP/2 plain transfers ?
Yes, this sounds reasonable. |
A regression made the code use 'multiplexed' as a boolean instead of the counter it is intended to be. Also, respect the CURLMOPT_MAX_CONCURRENT_STREAMS value in the same check. Reported-by: Kunal Ekawde Fixes #4779
(lets discuss the PR in the PR, see #4784) |
On the trap reported earlier:
Do you see anything of concern here ?
chosen->data is set here and again here: data is updated |
I would recommend you to base further tests on 7.68.0 before spending time on this. In particular ee263de changed some logic in this regard. |
yeah so far I didnt observe the trap on 7.68.0 there were application issues due to which couldn't proceed will the all the tests, probably #ee263de could have fixed. Thanks |
I did this
Ran HTTP/2 parallel transfers using this example: https://gist.github.com/kunalekawde/1c6494b0aa4bf818ab0c42bb42497f5d. More details in https://curl.haxx.se/mail/lib-2019-12/0073.html.
I tried with following fix: https://gist.github.com/kunalekawde/5cdfe5164b85d42c2b5ab5cdc9f70944 but after some calls run, it resulted in core dump.
url.c
I expected the following
Connections to be re-used based on some upper limit - max concurrent streams.
curl/libcurl version
7.67.0
The text was updated successfully, but these errors were encountered: