1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-11 12:05:06 -05: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; result = CURLE_OK;
break; break;
} }
if(!nread) {
result = ~CURLE_OK;
break;
}
buffersize -= nread; buffersize -= nread;
buf += nread; buf += nread;
allread += nread; allread += nread;