mirror of
https://github.com/curl/curl.git
synced 2026-07-26 03:57:16 +03:00
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.
This commit is contained in:
parent
e9422bc193
commit
12ccaed2a5
2 changed files with 4 additions and 8 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue