mirror of https://github.com/aria2/aria2
2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that causes time out when redirection occurs with content-length 0. * src/HttpResponseCommand.cc * src/HttpSkipResponseCommand.cc * src/HttpSkipResponseCommand.hpull/1/head
parent
e15d104d88
commit
d538c9ae97
|
@ -1,3 +1,11 @@
|
|||
2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Fixed the bug that causes time out when redirection occurs with
|
||||
content-length 0.
|
||||
* src/HttpResponseCommand.cc
|
||||
* src/HttpSkipResponseCommand.cc
|
||||
* src/HttpSkipResponseCommand.h
|
||||
|
||||
2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Now each status legends is shown only when it appears in Download
|
||||
|
|
|
@ -290,6 +290,8 @@ bool HttpResponseCommand::skipResponseBody
|
|||
if(httpResponse->getEntityLength() == 0 &&
|
||||
!httpResponse->isTransferEncodingSpecified()) {
|
||||
command->setStatusRealtime();
|
||||
// If entity length == 0, then socket read/write check must be disabled.
|
||||
command->disableSocketCheck();
|
||||
e->setNoWait(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -157,4 +157,10 @@ bool HttpSkipResponseCommand::processResponse()
|
|||
}
|
||||
}
|
||||
|
||||
void HttpSkipResponseCommand::disableSocketCheck()
|
||||
{
|
||||
disableReadCheckSocket();
|
||||
disableWriteCheckSocket();
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
|
@ -70,6 +70,8 @@ public:
|
|||
virtual ~HttpSkipResponseCommand();
|
||||
|
||||
void setTransferEncodingDecoder(const SharedHandle<Decoder>& decoder);
|
||||
|
||||
void disableSocketCheck();
|
||||
};
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Reference in New Issue