mirror of https://github.com/aria2/aria2
Don't pool connection if the command has multiple segments.
This means it did HTTP pipelined request. If this response is for the first request, then successive response may arrived to the socket.pull/1/head
parent
97d0b71dd4
commit
2c3187451f
|
@ -158,7 +158,13 @@ bool HttpSkipResponseCommand::executeInternal()
|
|||
finished = streamFilter_->finished();
|
||||
}
|
||||
if(finished) {
|
||||
poolConnection();
|
||||
if(getSegments().size() <= 1) {
|
||||
// Don't pool connection if the command has multiple
|
||||
// segments. This means it did HTTP pipelined request. If this
|
||||
// response is for the first request, then successive response
|
||||
// may arrived to the socket.
|
||||
poolConnection();
|
||||
}
|
||||
return processResponse();
|
||||
} else {
|
||||
setWriteCheckSocketIf(getSocket(), getSocket()->wantWrite());
|
||||
|
|
Loading…
Reference in New Issue