Richard Oudkerk added the comment: Can you explain why you write in 512 byte chunks. Writing in one chunk should not cause a deadlock. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue1191964> _______________________________________