cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Nonblocking sockets still not working in all cases...

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 30 Jan 2002 16:10:59 +0100 (MET)

On Wed, 30 Jan 2002, Georg Horn wrote:

> I'm still having trouble with some https-servers:

Thanks a lot for patiently testing and repeatedly reporting.

This funny fix is what seems to be what I need to make this work at my place.
I really can't tell why I put a 0 in there before, it is so obviously wrong!
:-O Even the comment says we should "re-invoke SSL_read" it is so right. With
this patch, the code matches the comment:

diff -u -r1.41 sendf.c
--- sendf.c 2002/01/18 09:25:58 1.41
+++ sendf.c 2002/01/30 15:08:05
@@ -326,7 +326,7 @@
         /* if there's data pending, then we re-invoke SSL_read() */
         break;
       }
- } while(0);
+ } while(1);
     if(loop && SSL_pending(conn->ssl.handle))
       return -1; /* basicly EWOULDBLOCK */
   }

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-30