cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Timeout bug

From: Emil <em_at_la.mine.nu>
Date: Sun, 17 Feb 2002 19:21:38 -0500

On 16 February 2002, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 12 Feb 2002, Emil wrote:
>
> > In curl version 7.9.3 using both --connect-timeout and --max-time would not
> > work. They probably use the same alarm. I haven't check the sources neither
> > have I tried 7.9.4 but I haven't seen anything in the changelog to mention
> > this problem.

The error was actually just a compare sign. The most strict timeout
is the smaller one.
Someone please apply this patch to the source tree.

--- lib/connect.c.old Wed Jan 30 02:03:36 2002
+++ lib/connect.c Sun Feb 17 19:16:41 2002
@@ -361,7 +361,7 @@

     /* get the most strict timeout of the ones converted to milliseconds */
     if(data->set.timeout &&
- (data->set.timeout>data->set.connecttimeout))
+ (data->set.timeout<data->set.connecttimeout))
       timeout_ms = data->set.timeout*1000;
     else
       timeout_ms = data->set.connecttimeout*1000;

-- 
								Regards,
								Emil
--
The FBI doesn't want to read encrypted documents, they want to read YOUR
encrypted documents.
Received on 2002-02-18