Lightwight socket IO wrapper

Marko Rauhamaa marko at
Mon Sep 21 09:57:24 CEST 2015

Michael Ströder <michael at>:

> Marko Rauhamaa wrote:
>> I recommend using socket.TCP_CORK with socket.TCP_NODELAY where they
>> are available (Linux).
> If these options are not available are both option constants also not
> available? Or does the implementation have to look into sys.platform?

   >>> import socket
   >>> 'TCP_CORK' in dir(socket)

The TCP_NODELAY option is available everywhere but has special semantics
with TCP_CORK.


More information about the Python-list mailing list