Re: [Web-SIG] how to test hunging socket ?

2009-01-31 Thread William Dode
On 31-01-2009, William Dode wrote: > I think i finaly could catch the error... > > With wsgiref simple_server (and apache mod_proxy), i run an app without > problem most of the time. I mean 10 hits/day. Some times, not every > day, the app freeze and i need to restart it manualy. If i don't t

Re: [Web-SIG] how to test hunging socket ?

2009-01-31 Thread William Dode
I think i finaly could catch the error... With wsgiref simple_server (and apache mod_proxy), i run an app without problem most of the time. I mean 10 hits/day. Some times, not every day, the app freeze and i need to restart it manualy. If i don't the app stay like that and never answer more

Re: [Web-SIG] how to test hunging socket ?

2009-01-31 Thread Robert Brewer
William Dodé wrote: > On 30-01-2009, Ian Bicking wrote: > > On Fri, Jan 30, 2009 at 3:48 PM, William Dode > wrote: > > > >> Fine, i should definitely give it a try. > >> > >> If my app is not thread safe but respond in a decent time, can i > benefit > >> from a multithread server (for a socket pro

Re: [Web-SIG] how to test hunging socket ?

2009-01-31 Thread William Dode
On 30-01-2009, Ian Bicking wrote: > --===1780478717== > Content-Type: multipart/alternative; boundary=00163646d5c46749ac0461ba70c5 > > --00163646d5c46749ac0461ba70c5 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 7bit > > On Fri, Jan 30, 2009 at 3:48 PM, William

Re: [Web-SIG] how to test hunging socket ?

2009-01-30 Thread Ian Bicking
On Fri, Jan 30, 2009 at 3:48 PM, William Dode wrote: > Fine, i should definitely give it a try. > > If my app is not thread safe but respond in a decent time, can i benefit > from a multithread server (for a socket problem) if i use a lock for > every page like that : > > I use webob... > If you

Re: [Web-SIG] how to test hunging socket ?

2009-01-30 Thread William Dode
On 30-01-2009, Ian Bicking wrote: > --===1588093401== > Content-Type: multipart/alternative; boundary=0016364ee12abeaed40461b91b05 > > --0016364ee12abeaed40461b91b05 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: quoted-printable > > If you use the Paste HTTP ser

Re: [Web-SIG] how to test hunging socket ?

2009-01-30 Thread Ian Bicking
If you use the Paste HTTP server and Python 2.5 with ctypes installed, you can install the watchthreads app: http://svn.pythonpaste.org/Paste/trunk/paste/debug/watchthreads.py that will let you see the hung threads, and get a traceback of their current position. On Fri, Jan 30, 2009 at 1:52 PM, W

[Web-SIG] how to test hunging socket ?

2009-01-30 Thread William Dode
Hi, I've a problem with a web app wich freeze periodicaly. I monitored my app and the hang doesn't seem to occur in it. So i think the problem is before, or after, a problem of socket i imagine... It append with wsgiref.simple_server and mod_wsgi. My app is not totaly thread safe so i didn't t