From: James Turner Date: Tue, 22 Dec 2015 21:16:13 +0000 (-0600) Subject: Trying to debug HTTP timeouts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ef7a0dc5a3a225da7bf2d754e9f1bf2d234a11c4;p=simgear.git Trying to debug HTTP timeouts --- 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