cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: connect failed if set socket non-blocking,why?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 25 Oct 2004 12:52:22 +0200 (CEST)

On Mon, 25 Oct 2004, [gb2312] »ÆÖ¾¾ü wrote:

> But if set socket to non-blocking, the connect() return -1(rc = -1)

If it would hang waiting for the connect to complete, it wouldn't be
non-blocking, would it?

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-10-25