Re: Large download speed deviations for CURLOPT_MAX_RECV_SPEED_LARGE in 8.4.0

2023-11-30 Thread Dmitry Karpov via curl-library
I tried the latest master branch with Daniel's fix, and I still see large deviations (up to 20%) from the speed limit set by CURLOPT_MAX_RECV_SPEED_LARGE. The deviations depend on a network speed and they get bigger when the speed limit gets far from the network speed. The 7.84.0 in my tests alw

Re: Strange connection persistence problem

2023-11-30 Thread Daniel Stenberg via curl-library
On Thu, 30 Nov 2023, mab20...@tiscali.it wrote: I do not understand how I pass _URL to setopt() who does its strdup thing and then later on this strduped memory area is separated into a correct HOST and not correct GET location. No one understands that. Because that's not how it should work a

Re: Strange connection persistence problem

2023-11-30 Thread Timothe Litt via curl-library
You really need to provide a reproducer - as simple as possible. That said: is _URL a #define constant or a variable?  Your printf doesn't have a \n - if you're seeing one, perhaps _URL has a \n - which can confuse things when it's inserted into the headers (makes the headers end early).  I re

Re: Strange connection persistence problem

2023-11-30 Thread Daniel Stenberg via curl-library
On Thu, 30 Nov 2023, mab20...@tiscalinet.it wrote: Moreover, if you have noticed, the header Host field is correct but the GET location is not. That's actually one of the details in this issue that makes me suspect this problem is perhaps caused by something in your application. Are you che

Re: Strange connection persistence problem

2023-11-30 Thread Max via curl-library
Thank you Daniel. I am using libcurl-7.85.0-12.fc37.x86_64 It is odd that if I do (down in my code) one after the other: printf("%s",_URL); curl_easy_setopt(curl, CURLOPT_URL, _URL); ... then printf outputs the correct url content but the following curl_easy_setopt does not work. I noticed

Re: Strange connection persistence problem

2023-11-30 Thread Daniel Stenberg via curl-library
On Thu, 30 Nov 2023, Max via curl-library wrote: The following (problematic) step is GET https://desthost.com/home/landed * Trying NNN.NNN.NNN.191:443... <<< mapped to different IP * Connected to desthost.com (NNN.NNN.NNN.191) port 443 (#3) ... GET /v1/pub/auth/web/login?scd=true HTTP/

Strange connection persistence problem

2023-11-30 Thread Max via curl-library
Hello. I have been using libcurl for several years without hitting any problem while reusing my existing connection/curl handle (including a mix of GETS, POSTS, and changing host). Now I am stuck with this problem. I do a few connection to a server (which I do not control), the last two bein

Re: Large download speed deviations for CURLOPT_MAX_RECV_SPEED_LARGE in 8.4.0

2023-11-30 Thread Daniel Stenberg via curl-library
On Wed, 29 Nov 2023, Dmitry Karpov via curl-library wrote: Is it something known or a not previously noticed regression in 8.4.0? When I looked into this now, I noticed a regression in multi_getsock() which makes libcurl re-calculate the waiting periods during rate-limiting way too often. Th

OpenSSL 3.2 QUIC support

2023-11-30 Thread Daniel Stenberg via curl-library
Building libcurl using OpenSSL 3.2 QUIC? I answered here: https://github.com/curl/curl/discussions/12425 -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://l