Commit 48064f8d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

to bail out
parent e71378d3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;