[Python-ideas] TCP Fast Open protocol
Guido van Rossum
guido at python.org
Thu Jan 10 22:46:11 CET 2013
On Thu, Jan 10, 2013 at 1:34 PM, Oleg Broytman <phd at phdru.name> wrote:
> On Fri, Jan 11, 2013 at 01:32:38AM +0400, Oleg Broytman <phd at phdru.name> wrote:
>> On Thu, Jan 10, 2013 at 01:24:56PM -0800, Guido van Rossum <guido at python.org> wrote:
>> > Is there sample code for an HTTP client? What if the server doesn't
>> > yet support the feature?
>>
>> AFAIU the feature is implemented at the kernel level and doesn't
>> require any change at the user level, only a socket option. If the
>> server doesn't implement the feature the kernel on the client side
>> transparently (to the client) reverts to normal 3-way TCP handshaking.
>
> Sorry, I was completely confused. Yes, clients need different calls:
> https://lwn.net/Articles/508865/
Right, that's what I gleaned from skimming the referenced paper. But
that and the lwn article you link only show C code. Let's see some
Python! (I would try it, but no machine I have access to supports this
yet.)
Hopefully the OP has some sample Python code? Otherwise I think it's a
little too early to adopt this...
--
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas
mailing list