summaryrefslogtreecommitdiff
path: root/src/HttpServerCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-11 08:28:22 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-11 08:28:22 +0000
commit0529e781875068e21085f4ac748eb5ee5d6085b3 (patch)
tree4e62dabcf78b1a8f84fc466f903b696bbc900f18 /src/HttpServerCommand.h
parentbf0cf1f5d955ead2a76b79bfe3f796bddee185d0 (diff)
2010-04-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use clock_gettime(CLOCK_MONOTONIC, ...) if it is available and usable to prevent from aria2 from being affected by system time change.
Diffstat (limited to 'src/HttpServerCommand.h')
-rw-r--r--src/HttpServerCommand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpServerCommand.h b/src/HttpServerCommand.h
index 09181f80..d1d6de30 100644
--- a/src/HttpServerCommand.h
+++ b/src/HttpServerCommand.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<SocketCore> _socket;
SharedHandle<HttpServer> _httpServer;
- Time _timeout;
+ Timer _timeoutTimer;
public:
HttpServerCommand(cuid_t cuid, DownloadEngine* e,
const SharedHandle<SocketCore>& socket);