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 vstinner
Recipients irmen, loewis, pitrou, vstinner
Date 2015-04-03.12:02:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428062575.5.0.529131609278.issue1103213@psf.upfronthosting.co.za>
In-reply-to
Content
> - I've learned that MSG_WAITALL may be unreliable on certain systems, so any implementation of recvall depending on MSG_WAITALL may inexplicably fail on such systems

Something else occurred since 5 years: the PEP 475 was accepted, it makes Python more reliable when it receives signals.

If recv(WAIT_ALL) is interrupted by a signal and returns less bytes, we must call PyErr_CheckSignal(). If the signal handler raises an exception, drop read data and raises the exception. If the signal handler does not raise an exception, we now *must* retry recv(WAIT_ALL) (with a shorter length, to not read too much data).

The IncompleteRead exception is still needed if the socket is closed before receiving the requested number of bytes.
History
Date User Action Args
2015-04-03 12:02:55vstinnersetrecipients: + vstinner, loewis, irmen, pitrou
2015-04-03 12:02:55vstinnersetmessageid: <1428062575.5.0.529131609278.issue1103213@psf.upfronthosting.co.za>
2015-04-03 12:02:55vstinnerlinkissue1103213 messages
2015-04-03 12:02:55vstinnercreate