[web2py] Re: ProgrammingError: Cannot operate on a closed database. in generator

2012-05-04 Thread François Delpierre
WhoooO ! Thanks for the answer Niphold, but a bit slower please ;-) If I understand your answer, my problem with asking web2py to stream a generator is not working anymore since I changed from the provided web server to Apache. BTW, I tried by removing the database accesses, and it does not beh

[web2py] Re: ProgrammingError: Cannot operate on a closed database. in generator

2012-05-04 Thread Niphlod
If I'm not mistaken as long as you're not going with green threads with uwsgi (and then some, nothing is too simple with green threads) you need to remember that returning a generator in a wsgi app basically means that the webserver will pile up the complete response before actually starting to