diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-21 08:49:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-21 08:49:14 +0000 |
commit | 1401d909e8c95b75243712fb8aa14aa9ba2ecfef (patch) | |
tree | d5271cbe4aa70309e2c3395b25ab03e579682cbc /lib/sendf.c | |
parent | 323332262203448cbe6558983e51c0ae25cd1602 (diff) |
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.
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index 79f8d51fb..896e42c68 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -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 } |