[fdo-trac] #772: WMS provider hangs for 2 minutes for
unavailable request
FDO
trac_fdo at osgeo.org
Thu Aug 25 02:41:43 EDT 2011
#772: WMS provider hangs for 2 minutes for unavailable request
----------------------------+-----------------------------------------------
Reporter: ChristineBao | Owner: Christine Bao
Type: defect | Status: new
Priority: major | Milestone: 3.6.0
Component: FDO API | Version: 3.6.0
Severity: 3 | Keywords:
External_id: 1408450 |
----------------------------+-----------------------------------------------
Comment(by ChristineBao):
'''Tech Assessment'''
WMS blocks for return from server till 2 minutes timeout.
FdoOwsDelegate.cpp shows:
{{{
FdoPtr<FdoOwsHttpHandler> httpHandler =
FdoOwsHttpHandler::Create(mbUrl, bGet, mbRequestString, mbUserName,
mbPasswd, mbProxyHost, mbProxyPort, mbProxyUserName, mbProxyPassword);
// Here we use 2 mins as the default value for "connection" timeout.
httpHandler->SetConnectionTimeout (60 * 2);
// The Perform call won't return util beginning receiving http
content.
// If there are any connection related problems, exceptions
// thrown out here
httpHandler->Perform();
}}}
The hard-coded timeout value should be pulled outside so that user can
configure it according to their needs. FDO connection has a capability
SupportsTimeout(), and Get/SetConnectionTimeout(). So they can be used to
config the time out value for WMS provider.
--
Ticket URL: <http://trac.osgeo.org/fdo/ticket/772#comment:1>
FDO <http://fdo.osgeo.org/>
Feature Data Objects
More information about the fdo-trac
mailing list