This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kiilerix
Recipients georg.brandl, kiilerix
Date 2009-05-12.14:19:03
SpamBayes Score 0.009396495
Marked as misclassified No
Message-id <1242137945.24.0.461546436751.issue6005@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-05-12 14:19:05kiilerixsetrecipients: + kiilerix, georg.brandl
2009-05-12 14:19:05kiilerixsetmessageid: <1242137945.24.0.461546436751.issue6005@psf.upfronthosting.co.za>
2009-05-12 14:19:03kiilerixlinkissue6005 messages
2009-05-12 14:19:03kiilerixcreate