Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96936
| Subject | Re: Lightwight socket IO wrapper |
|---|---|
| References | (3 earlier) <876134e683.fsf@elektro.pacujo.net> <mto9ud$2ui$1@dont-email.me> <87a8sgp5ln.fsf@elektro.pacujo.net> <mtof26$j1p$1@dont-email.me> <87wpvknoq8.fsf@elektro.pacujo.net> |
| From | MRAB <python@mrabarnett.plus.com> |
| Date | 2015-09-21 13:26 +0100 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.33.1442838425.28679.python-list@python.org> (permalink) |
On 2015-09-21 09:47, Marko Rauhamaa wrote: > Michael Ströder <michael@stroeder.com>: > >> Marko Rauhamaa wrote: >>> Michael Ströder <michael@stroeder.com>: >>> >>>> 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) >>> True >> >> On which platform was this done? > > Python3 on Fedora 21. > Python2 on RHEL4. > > Sorry, don't have non-Linux machines to try. > >> How to automagically detect whether TCP_CORK is really available on a >> platform? > > I sure hope 'TCP_CORK' in dir(socket) evaluates to False on non-Linux > machines. > On Windows 10: Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> 'TCP_CORK' in dir(socket) False >>>
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Lightwight socket IO wrapper Chris Angelico <rosuav@gmail.com> - 2015-09-21 12:40 +1000
Re: Lightwight socket IO wrapper Marko Rauhamaa <marko@pacujo.net> - 2015-09-21 07:39 +0300
Re: Lightwight socket IO wrapper Chris Angelico <rosuav@gmail.com> - 2015-09-21 14:48 +1000
Re: Lightwight socket IO wrapper Marko Rauhamaa <marko@pacujo.net> - 2015-09-21 09:56 +0300
Re: Lightwight socket IO wrapper Michael Ströder <michael@stroeder.com> - 2015-09-21 09:02 +0200
Re: Lightwight socket IO wrapper Marko Rauhamaa <marko@pacujo.net> - 2015-09-21 10:57 +0300
Re: Lightwight socket IO wrapper Michael Ströder <michael@stroeder.com> - 2015-09-21 10:29 +0200
Re: Lightwight socket IO wrapper Marko Rauhamaa <marko@pacujo.net> - 2015-09-21 11:47 +0300
Re: Lightwight socket IO wrapper MRAB <python@mrabarnett.plus.com> - 2015-09-21 13:26 +0100
csiph-web