From ef7a0dc5a3a225da7bf2d754e9f1bf2d234a11c4 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 22 Dec 2015 15:16:13 -0600 Subject: [PATCH] Trying to debug HTTP timeouts --- simgear/io/HTTPRequest.cxx | 1 + simgear/scene/tsync/terrasync.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/simgear/io/HTTPRequest.cxx b/simgear/io/HTTPRequest.cxx index 4ed18d6e..3050cbf4 100644 --- a/simgear/io/HTTPRequest.cxx +++ b/simgear/io/HTTPRequest.cxx @@ -325,6 +325,7 @@ unsigned int Request::responseLength() const //------------------------------------------------------------------------------ void Request::setFailure(int code, const std::string& reason) { + SG_LOG(SG_IO, SG_WARN, "HTTP request: set failure:" << code << " reason " << reason); _responseStatus = code; _responseReason = reason; diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index 68f059d4..db306efc 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -607,7 +607,7 @@ void SGTerraSync::SvnThread::updateSyncSlot(SyncSlot &slot) #if 1 if (slot.stamp.elapsedMSec() > (int)slot.nextWarnTimeout) { SG_LOG(SG_TERRAIN, SG_INFO, "sync taking a long time:" << slot.currentItem._dir << " taken " << slot.stamp.elapsedMSec()); - SG_LOG(SG_TERRAIN, SG_INFO, "HTTP status:" << _http.hasActiveRequests()); + SG_LOG(SG_TERRAIN, SG_INFO, "HTTP request count:" << _http.hasActiveRequests()); slot.nextWarnTimeout += 10000; } #endif -- 2.39.5