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 mdcowles
Recipients exarkun, mdcowles, neologix
Date 2010-04-23.15:43:52
SpamBayes Score 5.3702723e-05
Marked as misclassified No
Message-id <1272037439.75.0.516202037995.issue8493@psf.upfronthosting.co.za>
In-reply-to
Content
> if you get this type of error, it's probably because you're using non-
> blocking sockets

That's what I thought at first too. But the user's sockets were set to blocking.

> spinning around the send call trying to resend the data isn't going to 
> improve things, you should probably wait a little before retrying

The user switched to using send() and adding a short delay before retrying the send solved the problem.

In fact, I think it's a little silly that OS X raises the error rather than just saying that 0 bytes were sent (which is what I suppose that other OSes do).

But I think it's also not ideal that Python's socket.sendall() can't be used with confidence under OS X because it can fail under pretty normal circumstances.
History
Date User Action Args
2010-04-23 15:44:00mdcowlessetrecipients: + mdcowles, exarkun, neologix
2010-04-23 15:43:59mdcowlessetmessageid: <1272037439.75.0.516202037995.issue8493@psf.upfronthosting.co.za>
2010-04-23 15:43:53mdcowleslinkissue8493 messages
2010-04-23 15:43:52mdcowlescreate