cURL / Mailing Lists / curl-library / Single Mail

curl-library

WSAWOULDBLOCK (errno 10035)

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 31 Mar 2004 23:11:21 +0200 (CEST)

Hi

David Jeanneteau recently posted an entry[*] in the feedback forum on the curl
site where he claims that the OpenSSL funtion SSL_read() returns an
(unspecified) error instead of the proper one when it would block and that we
can detect WSAWOULDBLOCK and deal with it accordingly.

My questions to David:

1. What OpenSSL version is this happening with ?

2. Have you posted this to the OpenSSL team and if so, what did they respond?
   It looks like an OpenSSL bug to me.

My questions to the rest:

Any comments on this? Has anyone noticed this problem before?

If we are to make a fix like this, I would like to know more about in which
OpenSSL versions this happens and I would like the code properly #ifdef'ed for
windows only and thus using the define WSAWOULDBLOCK, not the numerical
version.

[*] = http://curl.haxx.se/feedback/display.cgi?id=10807406014246&support=yes

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