cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: https broken in 7.10.3pre3 ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 27 Dec 2002 19:56:24 +0100 (MET)

On Fri, 27 Dec 2002, Philippe Raoult wrote:

> > Can you show me a public SSL-using site that curl 7.10.3-pre3 can't fetch
> > data from? Also, which platform (curl -V output) and command line are you
> > using?
>
> check useragent line for curl version. wget gets this fine, as does curl
> 7.10.3-pre2. I havent been able to get anything off sourceforge with pre3,
> while pre2 seems ok on the same system. i tried hertz.com too, same stuff.

Thanks for this. I managed to repeat the problem and I believe the following
fix is what's needed (worked for me):

diff -u -r1.55 sendf.c
--- sendf.c 19 Dec 2002 15:45:15 -0000 1.55
+++ sendf.c 27 Dec 2002 18:54:56 -0000
@@ -347,10 +347,8 @@
         break;
       case SSL_ERROR_WANT_READ:
       case SSL_ERROR_WANT_WRITE:
- /* if there's data pending, then we re-invoke SSL_read() */
- if(SSL_pending(conn->ssl.handle))
- return -1; /* basicly EWOULDBLOCK */
- break;
+ /* there's data pending, re-invoke SSL_read() */
+ return -1; /* basicly EWOULDBLOCK */
       default:
         failf(conn->data, "SSL read error: %d", err);
         return CURLE_RECV_ERROR;

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-27