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 pitrou
Recipients David.Edelsohn, neologix, pitrou
Date 2013-04-24.19:24:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1366831498.05.0.437092093505.issue17835@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, right. That number is the pipe buffer size (1032 is F_GETPIPE_SZ).

It's 65536 here, so when the test tries to write 1 million bytes on a pipe, the write blocks as expected (you can read the comments to understand why the test is doint that). But with a 1 MiB buffer size, the write doesn't block and therefore doesn't have to wait for the auxiliary thread to start and read from the pipe buffer.

Something else, what does the following say:

>>> r, w = os.pipe()
>>> fcntl.fcntl(r, 1031, 1000)
History
Date User Action Args
2013-04-24 19:24:58pitrousetrecipients: + pitrou, neologix, David.Edelsohn
2013-04-24 19:24:58pitrousetmessageid: <1366831498.05.0.437092093505.issue17835@psf.upfronthosting.co.za>
2013-04-24 19:24:58pitroulinkissue17835 messages
2013-04-24 19:24:57pitroucreate