<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Right,<div><br></div><div>So, TileCache uses the python 'urllib2' module to make the WMS requests and in the `fetch()` function is where the response handling occurs:</div><div><br></div><div><a href="http://svn.tilecache.org/trunk/tilecache/TileCache/Client.py">http://svn.tilecache.org/trunk/tilecache/TileCache/Client.py</a></div><div><div><div><br></div><div>Dane</div><div><br></div><div><br></div><div>On Dec 12, 2008, at 8:19 AM, chris marx wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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-<div> chris<br><br><div class="gmail_quote">On Fri, Dec 12, 2008 at 11:12 AM, Dane Springmeyer <span dir="ltr"><<a href="mailto:blake@hailmail.net">blake@hailmail.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> <div style="word-wrap:break-word">Thanks Chris,<div><br></div><div>Cool. I'm fully in the python framework mindset, so this interesting to know.<br><div><div><br></div><div>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.</div> <div><br></div><div>Good luck this finding a patch for the timeouts!</div><div><br></div><font color="#888888"><div>Dane</div></font><div><div></div><div class="Wj3C7c"><div><br></div><div><br></div><div>On Dec 12, 2008, at 6:25 AM, chris marx wrote:</div> <br><blockquote type="cite">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).<div> <br></div><div>I very much dont like being tied to iis, but the manifold mapserver is tied to <a href="http://asp.net" target="_blank">asp.net</a>. 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-</div> <div>chris-</div><div><br></div><div><br></div><div><br></div><div><br></div><div>However, the services for Manifold are designed for .net<br><br><div class="gmail_quote">On Fri, Dec 12, 2008 at 3:34 AM, Dane Springmeyer <span dir="ltr"><<a href="mailto:blake@hailmail.net" target="_blank">blake@hailmail.net</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Chris,<div><br></div><div>Have you considered using MapServer for your WMS?</div><div> <br></div><div>Dane</div><div><br></div><div><br><div><div><div></div><div><div>On Dec 11, 2008, at 11:39 AM, chris marx wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div> Hi again,<div> 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.</div> <div><br></div><div>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?</div> <div><br></div><div>thanks!</div><div>chris-</div><div><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 2:53 AM, Fredrik Lundh <span dir="ltr"><<a href="mailto:fredrik@pythonware.com" target="_blank">fredrik@pythonware.com</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>chris marx wrote:<br> <br> > i think i saw this tip somewhere, but another user said it was a bad<br> > practice to use the sys.path to set the pythonpath. is it?<br> <br> </div>Not at all. The "sys.path" list is what Python uses to actually<br> search for modules; things like the PYTHONPATH variable or the<br> PythonPath entries in the Windows registry are just different ways to<br> set it.<br> <font color="#888888"><br> </F><br> </font></blockquote></div><br><br clear="all"><br>-- <br><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br> t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/" target="_blank">http://www.birds.cornell.edu/</a><br> </div></div></div><div> _______________________________________________<br>Tilecache mailing list<br> <a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br> <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br> </div></blockquote></div><br></div></div><br>_______________________________________________<br> Tilecache mailing list<br> <a href="mailto:Tilecache@openlayers.org" target="_blank">Tilecache@openlayers.org</a><br> <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br> <br></blockquote></div><br><br clear="all"><br>-- <br><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br>t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/" target="_blank">http://www.birds.cornell.edu/</a><br> </div></blockquote></div></div></div><br></div></div><br>_______________________________________________<br> Tilecache mailing list<br> <a href="mailto:Tilecache@openlayers.org">Tilecache@openlayers.org</a><br> <a href="http://openlayers.org/mailman/listinfo/tilecache" target="_blank">http://openlayers.org/mailman/listinfo/tilecache</a><br> <br></blockquote></div><br><br clear="all"><br>-- <br><br>Chris Marx<br>Programmer/Analyst<br>Cornell Lab of Ornithology<br>159 Sapsucker Woods Rd.<br>Ithaca, NY 14850<br>t. 1.607.254.1142<br><a href="http://www.birds.cornell.edu/">http://www.birds.cornell.edu/</a><br> </div></blockquote></div><br></div></body></html>