summaryrefslogtreecommitdiff
path: root/src/HttpServerCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-16 17:52:18 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-16 17:52:18 +0900
commitb2f27e6548ec5f13a0f5776612cb512cb0d30d4e (patch)
tree122e2f32f2e899924d746e73bc442172fc1a7d8c /src/HttpServerCommand.h
parente60181d1ad73ef2ca873d8d2ba0e13a932f0751a (diff)
Check !SocketRecvBuffer::bufferEmpty() in ctor.
Also treat !SocketRecvBuffer::bufferEmpty() as data is available.
Diffstat (limited to 'src/HttpServerCommand.h')
-rw-r--r--src/HttpServerCommand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HttpServerCommand.h b/src/HttpServerCommand.h
index 403bfd30..e54d5bbc 100644
--- a/src/HttpServerCommand.h
+++ b/src/HttpServerCommand.h
@@ -51,6 +51,8 @@ private:
SharedHandle<SocketCore> socket_;
SharedHandle<HttpServer> httpServer_;
Timer timeoutTimer_;
+
+ void checkSocketRecvBuffer();
public:
HttpServerCommand(cuid_t cuid, DownloadEngine* e,
const SharedHandle<SocketCore>& socket);