Gregory Trubetskoy
grisha at modpython.org
Fri Sep 1 09:45:00 EST 2000
Apache provides an API for this - ap_child_terminate(). I'll see about making it available to mod_python in the next release (which should happen fairly soon). Grisha -- Gregory (Grisha) Trubetskoy grisha at modpython.org On Fri, 1 Sep 2000, Daniel Plagge wrote: > Hello, > > we have here a persistant database (Informix) connection for each apache > task. One problem is that if the database goes down, the connection has > to be reinitiallized. I tried to achieve this by writing a wrapper class > around the informixdb class which reinitializes the connection if a > exception raises. > > But this led to some strange errors, so I want to try another approach: > I want to alter "cgihandler" so that when a database exceptions raises > the task should be terminated. (This shouldn't happen very often, so > it's not a performance killer.) > > So my question is: What is the preferred way to terminate a apache task? > > Thank you, > Daniel > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://www.modpython.org/mailman/listinfo/mod_python >
|