diff options
Diffstat (limited to 'src/HttpServerResponseCommand.cc')
| -rw-r--r-- | src/HttpServerResponseCommand.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/HttpServerResponseCommand.cc b/src/HttpServerResponseCommand.cc index 60d9766e..ca096b93 100644 --- a/src/HttpServerResponseCommand.cc +++ b/src/HttpServerResponseCommand.cc @@ -69,11 +69,11 @@ bool HttpServerResponseCommand::execute() _httpServer->sendResponse(); if(_httpServer->sendBufferIsEmpty()) { logger->info("CUID#%d - HttpServer: all response transmitted.", cuid); -// if(_httpServer->supportsPersistentConnection()) { -// logger->info("CUID#%d - Persist connection.", cuid); -// _e->commands.push_back -// (new HttpServerCommand(cuid, _httpServer, _e, _socket)); -// } + if(_httpServer->supportsPersistentConnection()) { + logger->info("CUID#%d - Persist connection.", cuid); + _e->commands.push_back + (new HttpServerCommand(cuid, _httpServer, _e, _socket)); + } return true; } else { if(_timeout.elapsed(10)) { |
