Guido van Rossum <guido at python.org> added the comment: Perhaps you can just dup() the socket? That's what the ref counter is for IIRC. ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue32038> _______________________________________