Certain changes to a model will hang rocket, like this one.  This happens 
with Postgres, psycopg2, Web2py 2.0.9.

1. Define a table field like this:
Field('name', length=64, required=True, requires=IS_NOT_EMPTY(), 
notnull=True)

2.  Change the field name because of a naming collision, like this:
Field('subject_name', length=64, required=True, requires=IS_NOT_EMPTY(), 
notnull=True)
Psycopg2 will raise an exception, complaining that the field contains null 
values.  In this case the table was empty.  Don't know what would happen if 
there were records in the table.

3.  Remove the notnull constraint.  Rocket will hang on the next request to 
that table.  I believe I was using appadmin to look at the table during 
this whole sequence.

On Wednesday, October 10, 2012 1:12:16 PM UTC-4, Massimo Di Pierro wrote:
>
> The current version of rocket, as of today, is the only pure python web 
> server that passes all pathoc tests (which means it is less vulnerable to 
> DoS attacks than others). 
>
> If it hangs (it never does for me), we should understand when and why.
>
> Massimo
>
> On Wednesday, 10 October 2012 10:40:02 UTC-5, VP wrote:
>>
>> I'm not impressed with Rocket , even as a devel-mode server. It hangs on 
>> me frequently.  Run web2py with more than 1 processes seem to help.
>
>

-- 



Reply via email to