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 socketpair
Recipients lars.gustaebel, martin.panter, socketpair
Date 2016-04-29.09:15:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461921357.82.0.388469596865.issue26877@psf.upfronthosting.co.za>
In-reply-to
Content
well, I don't use "r|" (but will, thanks for suggestion)

In any case, assuming that read() returns exact length is wrong. There is .readexactly() (f.e. in asyncio I mean). Or, one should use simple loop to call .read() multiple times.

Reading from plain file does not guarantee, that read() syscall will return requested count of bytes even when these bytes are available.
History
Date User Action Args
2016-04-29 09:15:57socketpairsetrecipients: + socketpair, lars.gustaebel, martin.panter
2016-04-29 09:15:57socketpairsetmessageid: <1461921357.82.0.388469596865.issue26877@psf.upfronthosting.co.za>
2016-04-29 09:15:57socketpairlinkissue26877 messages
2016-04-29 09:15:57socketpaircreate