cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Georg Horn <horn_at_koblenz-net.de>
Date: Wed, 30 Jan 2002 18:37:55 +0100

On Wed, Jan 30, 2002 at 04:10:59PM +0100, Daniel Stenberg wrote:
> 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.

Looks as if these servers that i'm monitoring are a good testbed
for curl. So why worry about an own testserver? ;-)

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

Hm, nice try. ;-) But now curl hangs in an endloss loop after retrieving
the page. With this one it really works:

+ } while(loop);

Bye,
Georg
Received on 2002-01-30