[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

Malversán report at bugs.python.org
Mon Nov 4 11:41:35 EST 2019


Malversán <malverspam at gmail.com> added the comment:

I do not have the answer about getting message boundaries at lower levels, but from a high-level point of view SOCK_SEQ_PACKET gives atomic reads, with no need to check for message boundaries yourself. Every time you read from a SOCK_SEQ_PACKET socket you get an entire message. That is the main difference with SOCK_STREAM, as far as I know.

----------

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


More information about the Python-bugs-list mailing list