Refactord the server to be single-threaded to make SSL work on Linux
SSL didn't work on Linux because of an incompatibility between non-blocking sockerts and SSL (which wasn't an issue on Mac OS X for some reason). I decided to try switching the server to use a single thread. This led to a performance improvement for zodbshootout and a lower-level networking test. I refactored the server listening logic and kept (at least for now) both the multi-threaded and the single-threaded version. (The multi-threaded logic can be used by changing a single import. Tests pass with both.). I'm a bit worried about the asyncio server. See http://bugs.python.org/issue27386 Tests appear to be less stable using asyncio.server on my Mac. :(
Showing
Please register or sign in to comment