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 neologix, pitrou, python-dev, vstinner
Date 2015-03-16.17:05:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwYywz_b6xcwREj-or0C71fe=D7w=ow4UkJcD2f_dHRd4Q@mail.gmail.com>
In-reply-to <CAMpsgwb1N7e1jk8_adAO+GLdb-GkBNd_xn77H_pkh3qX0uqjLQ@mail.gmail.com>
Content
> Also, I think there another issue in that test. It uses `N = support.PIPE_MAX_SIZE` but I think you want `N = support.PIPE_MAX_SIZE + 1` if you want the raw write() to block.

PIPE_MAX_SIZE is much larger than the effictive size of a pipe on
Linux. It's defined as:

# A constant likely larger than the underlying OS pipe buffer size, to
# make writes blocking.
# Windows limit seems to be around 512 B, and many Unix kernels have a
# 64 KiB pipe buffer size or 16 * PAGE_SIZE: take a few megs to be sure.
# (see issue #17835 for a discussion of this number).
PIPE_MAX_SIZE = 4 * 1024 * 1024 + 1

I don't think that PIPE_MAX_SIZE+1 makes a difference here.
History
Date User Action Args
2015-03-16 17:05:02vstinnersetrecipients: + vstinner, pitrou, neologix, python-dev
2015-03-16 17:05:02vstinnerlinkissue23680 messages
2015-03-16 17:05:02vstinnercreate