[Python-ideas] TCP Fast Open protocol
M.-A. Lemburg
mal at egenix.com
Fri Jan 11 23:12:21 CET 2013
On 11.01.2013 21:03, Yuriy Taraday wrote:
> On Fri, Jan 11, 2013 at 6:02 PM, M.-A. Lemburg <mal at egenix.com> wrote:
>
>> That said, it may be useful to have a PyPI package which implements
>> the FastOpen protocol in a separate socket implementation (which can
>> then monkey itself into the stdlib, if the application developer
>> wants this).
>>
>
> TCP Fast Open should be supported in client code directly, it's not enough
> to have socket() supporting it. It's not up to socket() implementation.
Right, the new methods would have to be used by the application.
> Server-side is pretty simple, so to say "Python supports TCP_FASTOPEN"
> there should be support implemented for each (or most) client libraries in
> stdlib, such as almost every module in
> http://docs.python.org/3/library/internet.html
>
> Monkey-patching all these modules (or their connect() parts) is not very
> clean way, I think.
Of course not, but it's viable way to test drive such an implementation
before putting the code directly into the stdlib modules.
gevent uses the same approach, BTW.
--
Marc-Andre Lemburg
eGenix.com
Professional Python Services directly from the Source (#1, Jan 11 2013)
>>> Python Projects, Consulting and Support ... http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ... http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
________________________________________________________________________
2013-01-22: Python Meeting Duesseldorf ... 11 days to go
::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::
eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
http://www.egenix.com/company/contact/
More information about the Python-ideas
mailing list