summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-16 17:20:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-16 17:22:32 +0200
commit12ccaed2a53c07edb12f5b4e944d3a78e6a6fa0c (patch)
tree29876c11e21c9fd887810de2281cf1dabf77e6bf /lib/http_proxy.c
parente9422bc1936f3df60d9f51cfb41adaec74ab9626 (diff)
downloadcurl-12ccaed2a53c07edb12f5b4e944d3a78e6a6fa0c.tar.gz
http-proxy: deal with EAGAIN
... the previous code would reset the header length wrongly (since 5113ad0424). This makes test 1060 reliable again. Also: make sws send even smaller chunks of data to increase the likeliness of this happening.
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index 380eded2e..bb788bd2e 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -311,6 +311,7 @@ static CURLcode CONNECT(struct connectdata *conn,
return result;
s->tunnel_state = TUNNEL_CONNECT;
+ s->perline = 0;
} /* END CONNECT PHASE */
check = Curl_timeleft(data, NULL, TRUE);
@@ -328,8 +329,6 @@ static CURLcode CONNECT(struct connectdata *conn,
{ /* READING RESPONSE PHASE */
int error = SELECT_OK;
- s->perline = 0;
-
while(s->keepon && !error) {
ssize_t gotbytes;