curl-users
RE: hangs when receiving
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Feb 2002 15:47:20 +0100 (MET)
Date: Tue, 5 Feb 2002 15:47:20 +0100 (MET)
On Tue, 5 Feb 2002, Roth, Kevin P. wrote:
> This one doesn't:
> $ curl https://www.microsoft.com/MAC/download/OFFICE98/
Can you please apply this patch and retry?
diff -u -r1.43 sendf.c
--- lib/sendf.c 2002/01/30 21:49:29 1.43
+++ lib/sendf.c 2002/02/05 14:47:00
@@ -310,7 +310,7 @@
do {
nread = SSL_read(conn->ssl.handle, buf, buffersize);
- if(nread > 0)
+ if(nread >= 0)
/* successful read */
break;
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/Received on 2002-02-05