mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:03:32 +03:00
Fix the "lingering close" problem when re-using a connection, as test case
160 shows. We got no data and we attempted to re-use a connection. This might happen if the connection was left alive when we were done using it before, but that was closed when we wanted to read from it again. Bad luck. Retry the same request on a fresh connect! Deleted the sockerror variable again, it serves no purpose anymore.
This commit is contained in:
parent
3233322622
commit
1401d909e8
3 changed files with 7 additions and 13 deletions
|
|
@ -417,7 +417,6 @@ int Curl_read(struct connectdata *conn, /* connection data */
|
|||
|
||||
if(-1 == nread) {
|
||||
int err = Curl_ourerrno();
|
||||
conn->sockerror = err;
|
||||
#ifdef WIN32
|
||||
if(WSAEWOULDBLOCK == err)
|
||||
#else
|
||||
|
|
@ -425,8 +424,6 @@ int Curl_read(struct connectdata *conn, /* connection data */
|
|||
#endif
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
conn->sockerror = 0; /* no error */
|
||||
|
||||
#ifdef USE_SSLEAY
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue