diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-10-22 12:20:48 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-10-22 12:20:48 +0000 |
| commit | d538c9ae97e2dad3c442bc21e1c74026bad1183f (patch) | |
| tree | 41b78874a30943d50f1db49e5b86d0dd6f88a5c1 /src/HttpResponseCommand.cc | |
| parent | e15d104d8853b305806939e684663d9241ecd317 (diff) | |
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
Diffstat (limited to 'src/HttpResponseCommand.cc')
| -rw-r--r-- | src/HttpResponseCommand.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpResponseCommand.cc b/src/HttpResponseCommand.cc index e8cedc95..d7236ea7 100644 --- a/src/HttpResponseCommand.cc +++ b/src/HttpResponseCommand.cc @@ -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); } |
