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 rpointel, vstinner
Date 2014-02-20.22:37:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1392935845.48.0.429024889217.issue20669@psf.upfronthosting.co.za>
In-reply-to
Content
Extract of the POSIX standard for recvmsg():
http://pubs.opengroup.org/onlinepubs/009695399/functions/recvmsg.html

"""
DESCRIPTION

(...) The recvmsg() function shall return the total length of the message. (...) If a message is too long to fit in the supplied buffers, and MSG_PEEK is not set in the flags argument, the excess bytes shall be discarded, and MSG_TRUNC shall be set in the msg_flags member of the msghdr structure. (...)

ERRORS

[EMSGSIZE] The msg_iovlen member of the msghdr structure pointed to by message is less than or equal to 0, or is greater than {IOV_MAX}.
"""

I don't see EMSGSIZE in the Linux manual page of recvmsg(). So it looks like Linux truncates, whereas OpenBSD raises an error. It's probably safe to accept in the unit test that the OS can raise OSError(EMSGSIZE).
History
Date User Action Args
2014-02-20 22:37:25vstinnersetrecipients: + vstinner, rpointel
2014-02-20 22:37:25vstinnersetmessageid: <1392935845.48.0.429024889217.issue20669@psf.upfronthosting.co.za>
2014-02-20 22:37:25vstinnerlinkissue20669 messages
2014-02-20 22:37:25vstinnercreate