
Oct. 26, 2007
11:19 p.m.
On 10/26/07, Rutt, Benjamin <Benjamin.Rutt@gs.com> wrote:
1) forking off a thread so that I will not block other clients from talking to the server.
If this is a SQL database with which you're using a dbapi module, you should probably be using twisted.enterprise.adbapi to make access to that database asynchronous. Under the hood it's using threads to make the interface asynchronous. Otherwise, if the only programmatic interface this database of yours has is blocking, then you'll probably need to use a thread yourself. See twisted.internet.threads.deferToThread. -- Christopher Armstrong International Man of Twistery http://radix.twistedmatrix.com/ http://twistedmatrix.com/ http://canonical.com/