[ZODB-Dev] ZEO Connection and fork

Tim Peters tim at zope.com
Wed Sep 8 14:42:09 EDT 2004


[Thomas Guettler]
> What happens if you fork a process which has an connection to a zodb over
> a socket file?

Nothing, provided you don't try to use the forked ZEO connection from both
processes.

> Each worker process calls connection.sync() before the start and commit()
> or abort() at the end.
>
> Serveral processes use the same file descriptor. Does ClientStorage
> syncronize the access?

If you try it, let us know how it worked, assuming you can dig yourself out
of the ashes <wink>.  IOW, it's not an intended use case, and I have no idea
what will happen specifically, just vague premonitions of disaster.  Note
that you're going to have two copies of asyncore fighting over clones of the
socket map too.



More information about the ZODB-Dev mailing list