mirror of
https://github.com/curl/curl.git
synced 2026-07-26 12:37:16 +03:00
- Dengminwen found a bug in the connection re-use function when using the
multi interface with pipelining enabled as it would wrongly check for, detect and close "dead connections" even though that connection was already in use!
This commit is contained in:
parent
68b67e24f2
commit
fb2e71b9bd
3 changed files with 12 additions and 4 deletions
|
|
@ -2511,9 +2511,10 @@ ConnectionExists(struct SessionHandle *data,
|
|||
}
|
||||
|
||||
if(match) {
|
||||
if(pipeLen == 0) {
|
||||
/* The check for a dead socket makes sense only if there
|
||||
are no handles in pipeline */
|
||||
if(!pipeLen && !check->inuse) {
|
||||
/* The check for a dead socket makes sense only if there are no
|
||||
handles in pipeline and the connection isn't already marked in
|
||||
use */
|
||||
bool dead = SocketIsDead(check->sock[FIRSTSOCKET]);
|
||||
if(dead) {
|
||||
check->data = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue