STINNER Victor <vstin...@redhat.com> added the comment:
I tried to modify the test_warn_on_full_buffer() code filling the socketpair buffer: * iterate on multiple chunk sizes: 2**16, 2**10, 2**5, 1 bytes * first try in non-blocking mode then retry with a timeout of 100 ms * I also tried to play with SO_SNDBUF and SO_RCVBUF socket options The problem is that I failed to fail a reliable way to fill the socketpair buffer. I will stick with Nathaniel's very simple idea: retry once if the test fails. I implemented exactly this idea in my PR 8327 (with additional minor changes to enhance the test). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34130> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com