diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-04-14 00:25:23 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-04-14 00:25:23 +0900 |
| commit | 692a674fe086b24fa462723688ced2722cfde3b9 (patch) | |
| tree | 9dcc8efc7e3ec92183ccbee611ce7b1934b071d0 /src/HttpSkipResponseCommand.cc | |
| parent | 8ed8ac0fe8925ab8244e62fbf20de2472480a95f (diff) | |
SocketRecvBuffer: Eliminate memmove
Since we don't try to read into buffer if buffer is not empty, we
don't have to memmove things. This commit mostly rewrites
SocketRecvBuffer.
Diffstat (limited to 'src/HttpSkipResponseCommand.cc')
| -rw-r--r-- | src/HttpSkipResponseCommand.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpSkipResponseCommand.cc b/src/HttpSkipResponseCommand.cc index ef5d3d76..d2149c1f 100644 --- a/src/HttpSkipResponseCommand.cc +++ b/src/HttpSkipResponseCommand.cc @@ -138,7 +138,7 @@ bool HttpSkipResponseCommand::executeInternal() getSocketRecvBuffer()->getBufferLength()); bufSize = streamFilter_->getBytesProcessed(); } - getSocketRecvBuffer()->shiftBuffer(bufSize); + getSocketRecvBuffer()->drain(bufSize); } if(totalLength_ != 0 && eof) { throw DL_RETRY_EX(EX_GOT_EOF); |
