On Mon, 23 Feb 2009 12:21:59 pm Jody Garnett wrote:
> > ...
> The WfS data store timeout is a hack; I think it sets the java global
> timeout and then sets it back. If you are encountering problems it
> may be something to test...
>
> > * is it possible to configure a time-out value for client-side
> > WMS connection requests --akin to the WFSDataStoreFactory:TIMEOUT
> > configuration property?
>
> It is; we could use the same trick as WFSDataStore; please review the
> code and see if you like the trick and think it will work?

i had a look at the source of the 2.5.x branch and here is what i found:

* for WFS 1.0 the timeout value seems to be used, as you describe it as 
a hack, passed to the org.geotools.data.wfs.v1_0_0.WFSFeatureReader 
which in turns passes it to org.geotools.xml.gml.FCBuffer.  the latter 
then checks if the time between two successive invocations of the 
getFeatureType() and next() methods is longer than the timeout and if 
it is throws an exception.

* for WFS 1.1.0, the timeout setting seems to be properly handled in 
that the value is chanelled to the 
org.geotools.data.wfs.protocol.http.SimpleHttpProtocol class which then 
sets the connection timeout of the HttpUrlConnection to the 
user-defined value.  also noticed that the code uses the same value for 
both connection and read timeouts.

* for WMS, the code for the requests ends up in the method 
internalIssueRequest() of org.geotools.data.ows.AbstractOpenWebService 
which does not set either timeout values.


i couldn't see how currently WMS can be configured to set connect and/or 
read timeouts; unless you were talking about a future capability.


cheers;
rsn

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to