cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: 100% CPU usage when connection closed on HTTP upload

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Nov 2006 15:47:25 +0100 (CET)

On Thu, 30 Nov 2006, Matt Witherspoon wrote:

> This only seems to happen with HTTP upload (not HTTP download or FTP
> upload/download).

That's very strange, since the actual data-sending is the exact same code for
FTP as for HTTP...

> 7.16.0 was compiled by myself, 7.13.1 came with FC4. Anyone have any
> suggestions? I will attempt to look into the Curl source, but I thought I'd
> check on here before going that route in case I'm simply doing something
> wrong :)

I don't think you _can_ do anythign wrong as a user of the tool, it _should_
detect the situation, and at least never just go 100% CPU.

See lib/sendf.c:Curl_write() for the internal function that sends data to the
server.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-11-30