[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: > Note that in my experience, socket systems treat the buffer sizes as more > like... rough guidelines. Oh. Now I'm scared. I succeeded to fix bpo-33532 and bpo-33353, so I no longer need this issue. Since it seems hard to have a portable and *reliable* beh

[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-01 Thread Nathaniel Smith
Nathaniel Smith added the comment: Note that in my experience, socket systems treat the buffer sizes as more like... rough guidelines. Especially Windows and Linux. Which doesn't mean they're not useful to expose somehow, but you can't assume that just because you set the buffer to size X me

[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-01 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-01 Thread STINNER Victor
New submission from STINNER Victor : Many Python unit tests require a blocking send into a pipe or a socket. support.PIPE_MAX_SIZE (4 MiB +1 B) has been added for pipes in bpo-17835: sending PIPE_MAX_SIZE into a pipe must block. On Linux, the maximum size of a pipe is /proc/sys/fs/pipe-max-si