[New-bugs-announce] [issue33683] asyncio: sendfile tests ignore SO_SNDBUF on Windows

STINNER Victor report at bugs.python.org
Tue May 29 10:07:11 EDT 2018


New submission from STINNER Victor <vstinner at redhat.com>:

Follow-up of bpo-33353: On my PR 7200, test_sendfile_close_peer_in_the_middle_of_receiving() failed on Windows (AppVeyor) :-(

For the SelectorEventLoop, it seems like sock.setsockopt(socket.SOL_SOCKET, socket.SO_SNDBUF, 1024) doesn't work as intented: sock.send(<16384 bytes>) returns 16384, as the 1024 limit is not taken in account :-(

Same issue for the ProactorEventLoop...

I'm not sure if it's a bug in asyncio, a bug (limitation) of Windows which ignores SO_SNDBUF, or something else...

----------
components: Tests, Windows, asyncio
messages: 318031
nosy: asvetlov, paul.moore, steve.dower, tim.golden, vstinner, yselivanov, zach.ware
priority: normal
severity: normal
status: open
title: asyncio: sendfile tests ignore SO_SNDBUF on Windows
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33683>
_______________________________________


More information about the New-bugs-announce mailing list