Trying to debug HTTP timeouts

This commit is contained in:
James Turner 2015-12-22 15:16:13 -06:00
parent 5d754c0419
commit ef7a0dc5a3
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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