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 13:07:27 +0200 (CEST)

On Mon, 25 Oct 2004, [utf-8] ??? wrote:

> connect return value is -1 ,but errno is also 0, that is the key reason
> puzzling me.

Why is this a curl issue at all?

Yes, connect() can return -1 with errno set to 0. The program then needs to
deal with it. libcurl does.

-- 
      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