curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: CPU usage since 8.7.1

From: Gleb Smirnoff via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 28 Oct 2025 12:05:36 -0700

On Tue, Oct 28, 2025 at 07:38:28PM +0100, Stefan Eissing wrote:
S> > I added Stefan to explicit Cc. Since he very recently added 24badd29f
S> > titled "limit-rate revisited" (of course this conlicted with out patch
S> > again), he definitely should have an opinion on how this can be solved.
S>
S> I can have a look tomorrow at what we can do here. At what traffic are
S> you specifically interested in? HTTP/1.1 I assume?

Yes, HTTP/1.1 over https in our case. But the I/O loop in sendrecv_dl()
seems to be quite agnostic to what protocol we use, it is all about
bytes on a socket. Maybe I'm wrong here.

btw, I see your change:

- if(total_received)
+ if(total_received >= (data->set.max_recv_speed / 4))

This may actually help our case!

I'm going to give a try to unmodified 8.16.0.

-- 
Gleb Smirnoff
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-10-28