[ZODB-Dev] Quick ZODB connection synch question

Nicholas Henke henken at seas.upenn.edu
Mon Sep 29 12:14:29 EDT 2003


On Mon, 2003-09-29 at 11:00, Shane Hathaway wrote:
> 
> Is this the answer you're looking for, Nicholas?
> 
>    import asyncore
>    asyncore.loop()
> 
> If you need to run that in a separate thread:
> 
>    import thread, asyncore
>    thread.start_new_thread(asyncore.loop, ())

Oh. Guess it is that simple. :) How about shutting it down cleanly? 

Nic
-- 
Nicholas Henke
Penguin Herder & Linux Cluster System Programmer
Liniac Project - Univ. of Pennsylvania




More information about the ZODB-Dev mailing list