[pysqlite] lifetime of connection handle
"Eric S. Johansson" <[email protected]> Fri, 07 Nov 2008 01:09:58 -0500
| Newsgroups | gmane.comp.python.db.pysqlite.user |
|---|---|
| Message-ID | <[email protected]> |
if I open a pysqlite connection in the process, then fork that process, can the child safely use that connection? Reason I ask is that I have a part of my application which receives a connection from postfix postqueueing filter via smtp and in order to handle a large final traffic, I fork on every connection and write the message to a database and expire. it would be nice if I didn't have to establish a connection after every fork. Yes, this is technically what threads are for but threads are evil and will bite you in the butt every time. :-) ---eric