summaryrefslogtreecommitdiff
path: root/src/HttpServerBodyCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-20 02:33:42 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-06-20 02:33:42 +0000
commit572f10af72766e7c5769cd234408a3d50f8742c8 (patch)
tree918d000e08805dd8b1e83c1c745005bcb1f1ce2e /src/HttpServerBodyCommand.cc
parent34b3d88795174b2d941cfdbee28c5e62f4eb3ec9 (diff)
2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call setNoWiat(true) if newly created command calls setStatus(STATUS_ONESHOT_REALTIME) from its constructor. * src/HttpListenCommand.cc * src/HttpServerBodyCommand.cc * src/HttpServerCommand.cc * src/HttpServerResponseCommand.cc * src/InitiateConnectionCommand.cc * src/RequestGroup.cc * src/StreamFileAllocationEntry.cc
Diffstat (limited to 'src/HttpServerBodyCommand.cc')
-rw-r--r--src/HttpServerBodyCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc
index b5f7b482..afbf601d 100644
--- a/src/HttpServerBodyCommand.cc
+++ b/src/HttpServerBodyCommand.cc
@@ -62,6 +62,7 @@ HttpServerBodyCommand::HttpServerBodyCommand
_socket(socket),
_httpServer(httpServer)
{
+ setStatus(Command::STATUS_ONESHOT_REALTIME);
_e->addSocketForReadCheck(_socket, this);
}
@@ -91,7 +92,6 @@ bool HttpServerBodyCommand::execute()
_httpServer->feedResponse(res.toXml(), "text/xml");
Command* command =
new HttpServerResponseCommand(cuid, _httpServer, _e, _socket);
- command->setStatus(Command::STATUS_ONESHOT_REALTIME);
_e->commands.push_back(command);
_e->setNoWait(true);
return true;