New submission from Matthew Cowles <mdcow...@users.sourceforge.net>:

[From a question first posted to python-help]

A socket's send function may return 0 if no bytes have been sent. Under at 
least OS X 10.6.2, it may also raise errno 35 (resource temporarily 
unavailable) if no network buffers are available. If a Python coder is using 
socket.send() that's no problem. They can catch the exception and try again. 
but it makes socket.sendall() (which is implemented as calls to send() ) not 
very useful. I expect that it would be fairly easy to have it check for that 
error number in addition to checking for an incomplete send.

As far as I'm aware, it's only OS X that ever does that.

----------
components: Library (Lib)
messages: 103908
nosy: mdcowles
severity: normal
status: open
title: socket's send can raise errno 35 under OS X, which causes problems in 
sendall
versions: Python 2.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8493>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to