socket: connection reset by server before client gets response
Hendrik van Rooyen
mail at microcorp.co.za
Sun Jul 8 10:30:47 CEST 2007
"ahlongxp" <ah...p at gmail.com> wrote:
> me again.
> "Connection reset by peer" happens about one in fifth.
> I'm using python 2.5.1 and ubuntu 7.04.
Try to wait a while in the server thread, after sending the
message before closing the connection, to give the message
time to get transmitted.
time.sleep(0.5) should do it...
More information about the Python-list