cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: connection not resuming

From: Mads Martin Joergensen <mmj_at_mmj.dk>
Date: Thu, 13 Mar 2008 13:58:55 +0100

* Daniel Stenberg <daniel_at_haxx.se> [Mar 05. 2008 08:47]:
> >>> Oh, right. I didn't read your question properly it seems. You're
> >>> right, that
> >>> timeout will not be what you want. But libcurl provides no
> >>> particular timeout
> >>> for the "connected but not yet provided any data" state.
> >
> > Can I get it on the wishlist?
>
> CURLOPT_LOW_SPEED_TIME and CURLOPT_LOW_SPEED_LIMIT should cover that
> case fine, or you craft your own with the progress callback. I see no
> reason to introduce a new timeout.

Just a little confirmation from the trenches:

+ curl_setopt($ch, CURLOPT_LOW_SPEED_LIMIT, 1024);
+ curl_setopt($ch, CURLOPT_LOW_SPEED_TIME, 300);

Fixed this problem for us, effectively providing the 5 minute timeout
we're looking for.

Thanks for the help!

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                 -- A. P. J.
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2008-03-13