[Tilecache] Increase WMS request timeout?

Dane Springmeyer blake at hailmail.net
Fri Dec 12 11:29:14 EST 2008


Right,

So, TileCache uses the python 'urllib2' module to make the WMS  
requests and in the `fetch()` function is where the response handling  
occurs:

http://svn.tilecache.org/trunk/tilecache/TileCache/Client.py

Dane


On Dec 12, 2008, at 8:19 AM, chris marx wrote:

> Just to avoid confusion on the list, I'm not requesting help or  
> information about timeouts, but specifically a way to tweak  
> tilecache so that if it receives an error from the wms, it will try  
> to make the same exact request a second time, perhaps after waiting  
> a second-
> chris
>
> On Fri, Dec 12, 2008 at 11:12 AM, Dane Springmeyer  
> <blake at hailmail.net> wrote:
> Thanks Chris,
>
> Cool. I'm fully in the python framework mindset, so this interesting  
> to know.
>
> I do recognize the value of being able to style and manipulate the  
> data in a desktop gis (that' what you mean by a 'real gis', right?),  
> allowing you to then publish effortlessly. I tend to write my  
> stylesheets 'by hand', which has its tradeoffs. I don't have the  
> benefit of a 'gis' to do my thematics and symbols, but I benefit  
> from the flexibility of having the styles and tile server (in my  
> cases either mapserver or mapnik) being uncoupled (if needed) with  
> any particular framework or server platform.
>
> Good luck this finding a patch for the timeouts!
>
> Dane
>
>
> On Dec 12, 2008, at 6:25 AM, chris marx wrote:
>
>> I have yet to load up either mapserver or geoserver, although  
>> preferring java development, geoserver looks a little more  
>> attractive. Even though i keep most of my data in oracle spatial,  
>> it's just very easy to link and then style/manipulate the data in a  
>> real gis, and have the wms service come right out of the project  
>> (like publishing a mxd for ArcServer).
>>
>> I very much dont like being tied to iis, but the manifold mapserver  
>> is tied to asp.net. The hacked status monitor does fix the problem,  
>> but within the few minutes between the monitoring, sometimes  
>> someone will see a few maps with tiles missing, so adding this  
>> feature would at least get me up a running for the moment-
>> chris-
>>
>>
>>
>>
>> However, the services for Manifold are designed for .net
>>
>> On Fri, Dec 12, 2008 at 3:34 AM, Dane Springmeyer  
>> <blake at hailmail.net> wrote:
>> Chris,
>>
>> Have you considered using MapServer for your WMS?
>>
>> Dane
>>
>>
>> On Dec 11, 2008, at 11:39 AM, chris marx wrote:
>>
>>> Hi again,
>>>   So I tracked this back a bit more, and it turns out that my WMS  
>>> is have an odd problem. It's Manifold GIS wms that has a mapserver  
>>> component. It runs in IIS. For reason or another, after the  
>>> process has been running for a little while, some requests come  
>>> back fine, and others return an error. I've set up a service to  
>>> hit the mapserver at regular intervals, and refresh the  
>>> application pool if this condition arises, but it would also be  
>>> helpful if there were some way to tell TileCache to try to get the  
>>> same image again if it the first time comes back with an error.
>>>
>>> I say this because the WMS problem is intermitten, and often  
>>> hitting the same link again results in a image coming back rather  
>>> than an error. Has anyone tried adding this functionality, or know  
>>> where I would need to start to implement this?
>>>
>>> thanks!
>>> chris-
>>>
>>> On Tue, Nov 25, 2008 at 2:53 AM, Fredrik Lundh <fredrik at pythonware.com 
>>> > wrote:
>>> chris marx wrote:
>>>
>>> >  i think i saw this tip somewhere, but another user said it was  
>>> a bad
>>> > practice to use the sys.path to set the pythonpath. is it?
>>>
>>> Not at all.  The "sys.path" list is what Python uses to actually
>>> search for modules; things like the PYTHONPATH variable or the
>>> PythonPath entries in the Windows registry are just different ways  
>>> to
>>> set it.
>>>
>>> </F>
>>>
>>>
>>>
>>> -- 
>>>
>>> Chris Marx
>>> Programmer/Analyst
>>> Cornell Lab of Ornithology
>>> 159 Sapsucker Woods Rd.
>>> Ithaca, NY 14850
>>> t. 1.607.254.1142
>>> http://www.birds.cornell.edu/
>>> _______________________________________________
>>> Tilecache mailing list
>>> Tilecache at openlayers.org
>>> http://openlayers.org/mailman/listinfo/tilecache
>>
>>
>> _______________________________________________
>> Tilecache mailing list
>> Tilecache at openlayers.org
>> http://openlayers.org/mailman/listinfo/tilecache
>>
>>
>>
>>
>> -- 
>>
>> Chris Marx
>> Programmer/Analyst
>> Cornell Lab of Ornithology
>> 159 Sapsucker Woods Rd.
>> Ithaca, NY 14850
>> t. 1.607.254.1142
>> http://www.birds.cornell.edu/
>
>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>
>
>
> -- 
>
> Chris Marx
> Programmer/Analyst
> Cornell Lab of Ornithology
> 159 Sapsucker Woods Rd.
> Ithaca, NY 14850
> t. 1.607.254.1142
> http://www.birds.cornell.edu/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/tilecache/attachments/20081212/09850771/attachment.html


More information about the Tilecache mailing list