[modwsgi] Re: file http_filters.c, line 346, assertion readbytes 0 failed

2008-10-07 Thread Graham Dumpleton
This email is just to let you know I am not ignoring this. I am actually on holiday at the moment and have been having trouble finding time to have a good look at the problem. BTW, is the Apache one you built yourself or prepackaged? I ask as by default the symbol AP_DEBUG, to enable assertion

[modwsgi] flushing/ending client connection ?

2008-10-07 Thread AchipA
I'm fairly new to mod_wsgi so I'm not sure if I'm asking this at the right place... Is there a way to do some processing AFTER the connection to the client is closed ? For example, If I want to do a mail notification or database operation after all of the output is already available, it makes no

[modwsgi] Re: flushing/ending client connection ?

2008-10-07 Thread Graham Dumpleton
2008/10/8 AchipA [EMAIL PROTECTED]: I'm fairly new to mod_wsgi so I'm not sure if I'm asking this at the right place... Is there a way to do some processing AFTER the connection to the client is closed ? For example, If I want to do a mail notification or database operation after all of the

[modwsgi] Re: threading.local

2008-10-07 Thread gert
On Oct 7, 9:58 am, William Dode [EMAIL PROTECTED] wrote: On 06-10-2008, gert wrote: On Oct 6, 11:48 pm, gert [EMAIL PROTECTED] wrote: Will this share connections between requests ? import _mysql db = _mysql.connect('127.0.0.1','root','root','www') def application(environ,

[modwsgi] Re: threading.local

2008-10-07 Thread gert
So will start to figure things out but can i ask a global overall newbie python wsgi question :) x = 1 def application(environ, start_response): status = '200 OK' global x x = x + 1 output = str(x) response_headers = [('Content-type', 'text/html'),('Content- Length',