From e8e3a6f259ab74c486aec9b5ea95d3e1f5068f6c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 10 Aug 2011 01:17:28 +0900 Subject: wallclock is now retrieved using global::wallclock() call. This is necessary to avoid global variable initialization order problem. --- src/HttpServerBodyCommand.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/HttpServerBodyCommand.cc') diff --git a/src/HttpServerBodyCommand.cc b/src/HttpServerBodyCommand.cc index e8c063e5..71b20a7b 100644 --- a/src/HttpServerBodyCommand.cc +++ b/src/HttpServerBodyCommand.cc @@ -201,7 +201,7 @@ bool HttpServerBodyCommand::execute() if(socket_->isReadable(0) || !httpServer_->getSocketRecvBuffer()->bufferEmpty() || httpServer_->getContentLength() == 0) { - timeoutTimer_ = global::wallclock; + timeoutTimer_ = global::wallclock(); if(httpServer_->receiveBody()) { std::string reqPath = httpServer_->getRequestPath(); @@ -280,7 +280,7 @@ bool HttpServerBodyCommand::execute() return false; } } else { - if(timeoutTimer_.difference(global::wallclock) >= 30) { + if(timeoutTimer_.difference(global::wallclock()) >= 30) { A2_LOG_INFO("HTTP request body timeout."); return true; } else { -- cgit