summaryrefslogtreecommitdiff
path: root/src/HttpServerResponseCommand.cc
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/HttpServerResponseCommand.cc
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/HttpServerResponseCommand.cc')
-rw-r--r--src/HttpServerResponseCommand.cc2
1 files changed, 1 insertions, 1 deletions
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());