Message87633
http://docs.python.org/library/socket.html says about socket.send:
"Applications are responsible for checking that all data has been sent;
if only some of the data was transmitted, the application needs to
attempt delivery of the remaining data."
And about socket.sendall:
"Unlike send(), this method continues to send data from string until
either all data has been sent or an error occurs."
However, the examples on the same page uses plain conn.send(data)
without checking anything. That is misleading.
A solution could be to use conn.sendall(data) instead. |
|
Date |
User |
Action |
Args |
2009-05-12 14:19:05 | kiilerix | set | recipients:
+ kiilerix, georg.brandl |
2009-05-12 14:19:05 | kiilerix | set | messageid: <1242137945.24.0.461546436751.issue6005@psf.upfronthosting.co.za> |
2009-05-12 14:19:03 | kiilerix | link | issue6005 messages |
2009-05-12 14:19:03 | kiilerix | create | |
|