cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-524086 ] curl goes into hard loop (sometimes)

From: <noreply_at_sourceforge.net>
Date: Thu, 28 Feb 2002 14:53:25 -0800

Bugs item #524086, was opened at 2002-02-28 14:53
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=524086&group_id=976

Category: libcurl
Group: bad behaviour
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: curl goes into hard loop (sometimes)

Initial Comment:
Using curl 7.9.4 and openssl

Sometimes, curl goes into a hard loop reading from a socket. The socket read returns 0 (meaning
closed), and curl then just tries again. [gathered from an strace/truss of the process]

It appears that this happens in curl_read in the SSL portion of the code. I wonder if the fix is just
as simple as changing nread > 0 to nread >= 0

However, I don't know what the SSL_read returns in this case.

This problem is not very reproducible (it has only happened a couple of times)

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=524086&group_id=976
Received on 2002-02-28