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:
parent
e71378d3c8
commit
48064f8dee
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user