Message238227
> 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. |
|
Date |
User |
Action |
Args |
2015-03-16 17:05:02 | vstinner | set | recipients:
+ vstinner, pitrou, neologix, python-dev |
2015-03-16 17:05:02 | vstinner | link | issue23680 messages |
2015-03-16 17:05:02 | vstinner | create | |
|