[issue41682] [Windows] test_asyncio: Proactor test_sendfile_close_peer_in_the_middle_of_receiving failure
Guido van Rossum
report at bugs.python.org
Sun Jan 23 12:30:29 EST 2022
Guido van Rossum <guido at python.org> added the comment:
I'm wondering if the test is faulty. It seems to call EventLoop.sendfile() with a file that is 8K + 1 byte long,
and the protocol is instructed to close after 1K bytes have been written, but it seems to try to send as much of the file as it can.
Could it be that on Win22 the primitive used (TransmitFile) has an internal minimum buffer size that exceeds this file size, so the first call sends the whole file and there's no error?
@Andrew Svetlov, do you know enough of the internals of this code to validate my theory?
----------
nosy: +gvanrossum
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41682>
_______________________________________
More information about the Python-bugs-list
mailing list