From 0529e781875068e21085f4ac748eb5ee5d6085b3 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 11 Apr 2010 08:28:22 +0000 Subject: 2010-04-11 Tatsuhiro Tsujikawa Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and usable to prevent from aria2 from being affected by system time change. --- src/HttpServerResponseCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HttpServerResponseCommand.cc') diff --git a/src/HttpServerResponseCommand.cc b/src/HttpServerResponseCommand.cc index 06d724c7..e3a163f5 100644 --- a/src/HttpServerResponseCommand.cc +++ b/src/HttpServerResponseCommand.cc @@ -93,7 +93,7 @@ bool HttpServerResponseCommand::execute() } return true; } else { - if(_timeout.difference(global::wallclock) >= 10) { + if(_timeoutTimer.difference(global::wallclock) >= 10) { if(logger->info()) { logger->info("CUID#%s - HttpServer: Timeout while trasmitting" " response.", util::itos(cuid).c_str()); -- cgit