cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: intermittent http put issue

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 14 Jun 2009 22:54:58 +0200 (CEST)

On Thu, 11 Jun 2009, Bill Hoffman wrote:

> Now, this works 99.9% of the time. However, once in a while curl just hangs
> forever and the process does not stop. Any ideas on what would cause that?
> If I add a global timeout it will stop it. However, since I do not know how
> long it should take to send a file to the server, I am hesitant to pick a
> number. Any ideas on how to debug would be helpful?

I would start with doing strace or gdb -p to figure out exactly what libcurl
does at the moment when it seems to hang.

> Is there some sort of timeout based on response from the server?

CURLOPT_LOW_SPEED_LIMIT and CURLOPT_LOW_SPEED_TIME perhaps?

-- 
  / daniel.haxx.se
Received on 2009-06-14