diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-06-20 02:33:42 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-06-20 02:33:42 +0000 |
| commit | 572f10af72766e7c5769cd234408a3d50f8742c8 (patch) | |
| tree | 918d000e08805dd8b1e83c1c745005bcb1f1ce2e /src/StreamFileAllocationEntry.cc | |
| parent | 34b3d88795174b2d941cfdbee28c5e62f4eb3ec9 (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/StreamFileAllocationEntry.cc')
| -rw-r--r-- | src/StreamFileAllocationEntry.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc index faea2d44..e514457b 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -63,6 +63,7 @@ void StreamFileAllocationEntry::prepareForNextAction(std::deque<Command*>& comma if(_nextCommand) { // give _nextCommand a chance to execute in the next execution loop. _nextCommand->setStatus(Command::STATUS_ONESHOT_REALTIME); + e->setNoWait(true); commands.push_back(popNextCommand()); // try remaining uris _requestGroup->createNextCommandWithAdj(commands, e, -1); @@ -73,9 +74,8 @@ void StreamFileAllocationEntry::prepareForNextAction(std::deque<Command*>& comma Command* command = InitiateConnectionCommandFactory::createInitiateConnectionCommand (e->newCUID(), _currentRequest, _requestGroup, e); - + e->setNoWait(true); commands.push_back(command); - _requestGroup->createNextCommandWithAdj(commands, e, -1); } } |
