Rémi Cardona added the comment: Got hit by this too, maaaaany times as I'm working with 3G devices (slow write speeds).
As for "drain()", I'd say it should work like a fence/barrier: to let you know that the bytes in the buffer up to when the call was issued have been successfully written on the socket. I'll see what I can cook up. Cheers ---------- nosy: +RemiCardona _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29930> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com