cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SOCKS5 under cygwin.

From: Joe Khoobyar <joe_at_ankhcraft.com>
Date: Thu, 10 Nov 2005 22:55:23 -0500
Daniel Stenberg wrote:
On Thu, 10 Nov 2005, Joe Khoobyar wrote:

In the 10 minutes or so I spent poking through the code (deadlines at
work don't allow to me poke longer, since I have to move on to other
things) it looked like there was also some connection verification code
that doesn't get run for multi-handle connections.

Really? I looked through the code just now, searching for something like that but I didn't spot it...

I still haven't had time to dig further and I probably won't until after we finish moving to our new townhouse, but here's the lines that piqued my interest.

Lines 621-622:  lib/connect.c


/* singleipconnect() connects to the given IP only, and it may return without
   having connected if used from the multi interface. */

Lines 689-697: lib/connect.c  (same function: singleipconnect())

  if((WAITCONN_TIMEOUT == rc) &&
     (data->state.used_interface == Curl_if_multi)) {
    /* Timeout when running the multi interface */
    return sockfd;
  }

  conected = verifyconnect(sockfd, &error);

- jk
Received on 2005-11-11