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.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/HttpServerResponseCommand.h') diff --git a/src/HttpServerResponseCommand.h b/src/HttpServerResponseCommand.h index 7fc0eaca..ad654ae3 100644 --- a/src/HttpServerResponseCommand.h +++ b/src/HttpServerResponseCommand.h @@ -37,7 +37,7 @@ #include "Command.h" #include "SharedHandle.h" -#include "TimeA2.h" +#include "TimerA2.h" namespace aria2 { @@ -50,7 +50,7 @@ private: DownloadEngine* _e; SharedHandle _socket; SharedHandle _httpServer; - Time _timeout; + Timer _timeoutTimer; public: HttpServerResponseCommand(cuid_t cuid, const SharedHandle& httpServer, -- cgit