Fix for ConnectionStateError when using ZEO
Filed Under:
On my never-ending quest for improving this blog's performance I guess, I've just earned myself another notch in my belt by applying this patch to Five... Prior to its application, this instance (and other sites running Zope 2.9.x and Five 1.4) would suffer from random but substantial ZEO connection errors.
So, if your site seems sluggish and you find lots of occurrences of ConnectionStateError: Shouldn't load state for 0xXX when the connection is closed in your Zope log, you'll either have to wait (and upgrade to) Five version > 1.4.2 or apply this patch (devised by some helpful soul going by the moniker of 'Yuppie').
Now both tomster.org, as well as kodex online seem noticeably more snappy™, especially the non-cacheable bits, such as topic queries or search results.
