Second follow up.
I have tried running a CherryPy Server and setting up the same use
case. Nothing happens.
In order to be sure, I was able to reproduce the problem with web.py,
I restart the server, and only Ctrl-C it before going to the browser,
the machine crashed again (without network invocations from the
browser).
So it does look like a web.py problem . I have no idea how to localize
the problem.
I still have no problem on Leopard nor Linux. Could it be the
evolution of the 64 bits architecture of Snow Leopard ? (My linux box
is 32 bits only).
r.

On Nov 30, 4:53 pm, "r." <[email protected]> wrote:
> Follow up on the crashing problem:
>
> I use several spaces (virtual desktop), each one being dedicated to an
> application.
> One of them contains the Terminal where I run the web.py application,
> and one contains Safari.
> If I send several requests (3 to 5)  from safari (fast --clic-clic-
> clic) to web.py, switch to the terminal containing web.py and trying
> to kill (Ctrl-C) the application, each time the system crashes.
> If I use Firefox, the browser does not allow me to send very fast
> multiple queries clicking on the submit form. So I cannot reproduce
> the same behavior.
>
> Not sure this is a web.py problem after all, but I am surprise that I
> can bring down OSX easily using this technique.
> - fast network requests
> - killing the server process
>
> Only Snow Leopard crashes, not Leopard.
> Does any one can reproduce this problem?
>
> On Nov 30, 12:29 pm, "r." <[email protected]> wrote:
>
> > Hi,
>
> > I just had a strange behavior with app.run() depending on where I call
> > it.
>
> > <pre>
> > import web
> > urls = ('/', 'index')
> > app = web.application(urls, globals())
> > class index:
> >   def GET(self):
> >     return 'Hello world.'
> > app.run()
> > </pre>
>
> > raises a
>
> > <pre>
> >   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > python2.6/site-packages/web.py-0.33-py2.6.egg/web/wsgiserver/
> > __init__.py", line 1596, in start
> >     raise socket.error, msg
> > error: [Errno 48] Address already in use
> > </pre>
>
> > while the same code, replacing the last line with
>
> > <pre>
> > if __name__ == '__main__':
> >   app.run()
> > </pre>
>
> > runs nicely.
>
> > In addition, the first version crashed my Snow Leopard several times
> > (until I found that I need to use the if main).
>
> > I have the same behavior with
> > - Snow Leopard, Python 2.6.4, web.py 0.33 fresh out from PyPi
> > - Leopard, Python 2.6.3, web.py 0.31
>
> > Thanks,
> > r.

--

You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.


Reply via email to