cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: async connect

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 26 Jul 2002 13:14:54 +0200 (MET DST)

On Thu, 18 Jul 2002, Steve Dekorte wrote:

> > I noticed that even when using the multi interface, the connect phase
> > seems to block. Is this true? and if so, is there any way around it?
>
> Looks like one of the problems is that the multi connect is doing a
> waitconnect() with the full connect timeout.

Correct.

> I think the behavior that we really need for the multi interface is for it
> to keep trying a non-blocking connect(with 0 timeout) on each multiperform
> until a connection is establish or the connection timeout has elapsed.

I agree. We should never loop the way it currently does, this is just an
oversight on my behalf. I believe there are a few other places in the code
as well that might actually loop instead of returning back nicely when using
the multi interface.

-- 
  Cheers,
  Daniel Stenberg
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-07-26