1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

if we read zero bytes from the proxy, the connection is broken and we need

to bail out
This commit is contained in:
Daniel Stenberg 2007-06-05 13:42:23 +00:00
parent e71378d3c8
commit 48064f8dee

View File

@ -98,6 +98,11 @@ static int blockread_all(struct connectdata *conn, /* connection data */
result = CURLE_OK;
break;
}
if(!nread) {
result = ~CURLE_OK;
break;
}
buffersize -= nread;
buf += nread;
allread += nread;