netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC [PATCH 0/3] TCP_DEFER_ACCEPT updates
@ 2008-02-27  1:48 Patrick McManus
  2008-03-01 10:41 ` Eric Dumazet
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McManus @ 2008-02-27  1:48 UTC (permalink / raw)
  To: Netdev

Hello,

I have a few patches to try and improve the TCP_DEFER_ACCEPT
implementation. The first two are simple, the third is ante for a
discussion on how this should really be implemented.

Patch 1 : timeout values could not be less than allowed by the max
syn-recv queue size algorithms. This was not simply a matter of rounding
up to the next syn-ack retransmit time, it was enforcing at least 5
retransmits on a non-loaded machine even if the timeout (expressed by
the API in seconds) was set to 1.

Patch 2 : a socket that has completed its handshake but which is waiting
for the first data packet was retransmitting its syn-ack during that
period. This patch suppresses that transmission.

Patch 3 : move the connected (and TCP_DEFER'd) socket to ESTABLISHED
after the handshake, but defer placing it in the accept queue until some
data arrives. 

RFC?

-Patrick



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFC [PATCH 0/3] TCP_DEFER_ACCEPT updates
  2008-02-27  1:48 RFC [PATCH 0/3] TCP_DEFER_ACCEPT updates Patrick McManus
@ 2008-03-01 10:41 ` Eric Dumazet
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Dumazet @ 2008-03-01 10:41 UTC (permalink / raw)
  To: Patrick McManus; +Cc: Netdev

Patrick McManus a écrit :
> Hello,
> 
> I have a few patches to try and improve the TCP_DEFER_ACCEPT
> implementation. The first two are simple, the third is ante for a
> discussion on how this should really be implemented.
> 
> Patch 1 : timeout values could not be less than allowed by the max
> syn-recv queue size algorithms. This was not simply a matter of rounding
> up to the next syn-ack retransmit time, it was enforcing at least 5
> retransmits on a non-loaded machine even if the timeout (expressed by
> the API in seconds) was set to 1.
> 
> Patch 2 : a socket that has completed its handshake but which is waiting
> for the first data packet was retransmitting its syn-ack during that
> period. This patch suppresses that transmission.
> 
> Patch 3 : move the connected (and TCP_DEFER'd) socket to ESTABLISHED
> after the handshake, but defer placing it in the accept queue until some
> data arrives. 
> 
> RFC?
> 

I like your patches Patrick :)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-01 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-27  1:48 RFC [PATCH 0/3] TCP_DEFER_ACCEPT updates Patrick McManus
2008-03-01 10:41 ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).