cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: scp maxing the CPU

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Nov 2006 10:47:43 +0100 (CET)

On Wed, 8 Nov 2006, Gisle Vanem wrote:

(I moved this over to the libcurl list)

>> I say in libssh2, but I'm not sure. It could also be a bug in the libcurl
>> <=> libssh2 integration that causes this. Can you try digging a little
>> deeper?
>
> I'll take a look when I have the time (at the weekend?).

Ouch. I have a very interesting way to max out the memory usage beyond unreal:

  curl scp://localhost:80/helllo

With an ordinary apache http server running on port 80,
libssh2_session_startup() gets stuck and initially it spent a lot of CPU but
primarily it ate some 800MB of ram before I could break it... (and I believe
it will eat even more if I allow it to).

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