[ZODB-Dev] ZEO client hangs when combined with other asyncore code
jhylton at gmail.com
Wed Jun 22 11:36:19 EDT 2005
On 6/22/05, Jim Fulton <jim at zope.com> wrote:
> Tim Peters wrote:
> > IMO/IME, asyncore is a poor fit for applications where the callbacks are
> > "fancy", or even where they may just take a long time to complete (because
> > the asyncore mainloop is unresponsive for the duration). So if I had to use
> > asyncore (I've never done so on my own initiative <wink>), I'd gravitate
> > toward a work-queue model anyway, where threads unfettered by asyncore
> > worries do all "the real work"-- especially on Windows, which loves to run
> > threads --and where asyncore callbacks do as little as possible.
> This is exactly the model that Zope uses.
ZEO also runs several potentially slow operations in separate threads.
I think we've wondered in the past whether the tpc vote should be
another of those operations as the disk IO for a large transaction is
More information about the ZODB-Dev