Comment 3 for bug 711520

Revision history for this message
n1ywb (jeff-laughlin) wrote :

Geert, no offense, but this is a silly bug. Whoever wrote that code flunked sockets 101. It's not reasonable to ask the reporter to produce the test case for something so obvious. Just fix it.

You can switch to using socket.sendall(string[, flags]) which essentially implements the suggested loop.

See also http://docs.python.org/library/socket.html

See also http://docs.python.org/howto/sockets.html#using-a-socket which explains this issue.