Re: TCP_DEFER_ACCEPT issues

2007-11-04 Thread dean gaudet
fwiw i also brought the TCP_DEFER_ACCEPT problems up the end of last year: http://www.mail-archive.com/[EMAIL PROTECTED]/msg28916.html it's possible the final message in that thread is how we should define the behaviour, i haven't tried the TCP_SYNCNT idea though. -dean - To unsubs

Re: TCP_DEFER_ACCEPT issues

2007-11-02 Thread Felix von Leitner
There was no connection reset until I Ctrl-C'd the server 15 minuets (!) laster. > A typical tcpdump of what is happening for a tcp_defer_accept timeout of 20 > seconds is : > [1]08:52:47.480291 IP client.60930 > server.http: S > 2498995442:2498995442(0) win 5840 0,nop,wsca

Re: TCP_DEFER_ACCEPT issues

2007-11-01 Thread Eric Dumazet
Felix von Leitner a écrit : I am trying to use TCP_DEFER_ACCEPT in my web server. There are some operational problems. First of all: timeout handling. I would like to be able to set a timeout in seconds (or better: milliseconds) for how long the socket is allowed to sit there without data

Re: TCP_DEFER_ACCEPT issues

2007-11-01 Thread David Miller
From: Felix von Leitner <[EMAIL PROTECTED]> Date: Fri, 2 Nov 2007 02:33:21 +0100 > I am trying to use TCP_DEFER_ACCEPT in my web server. You aren't going to reach many Linux kernel networking exports on this mailing list. Please post your question instead to [EMAIL PROTECTED], a

TCP_DEFER_ACCEPT issues

2007-11-01 Thread Felix von Leitner
I am trying to use TCP_DEFER_ACCEPT in my web server. There are some operational problems. First of all: timeout handling. I would like to be able to set a timeout in seconds (or better: milliseconds) for how long the socket is allowed to sit there without data coming in. For high load

TCP_DEFER_ACCEPT

2001-07-07 Thread dean gaudet
i was digging around for info on TCP_DEFER_ACCEPT and found this claim in the thttpd mailing list archive: > Alexey Kuznestov mentioned to me that on SMP servers, this option may > not be desired as it creates a new contention point is this still the case? i haven't played with it

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread bert hubert
On Sun, Oct 22, 2000 at 05:33:53PM +0400, [EMAIL PROTECTED] wrote: > About uglyness. Violations of protocol are ugly. When all > the things proceed in a legal way undistingushable, > it is beautiful. 8) Ok, I'm convinced. The only thing I don't like is that to untrained observers, the repeated S

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread kuznet
Hello! > Ok, this surely is incorrect. However, sending spurious SYNACK packets > doesn't seem like the way to solve this problem. They are _not_ spurious. Connection did not enter ESTABLISHED state. If it entered this state, we would have no rights to timeout. It should be closed with FIN etc.

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread bert hubert
On Sun, Oct 22, 2000 at 04:56:41PM +0400, [EMAIL PROTECTED] wrote: > Hello! > > > Connection established, and I send no data > > But why did you set DEFER_ACCEPT then? 8) I was just experimenting. > It becomes legal, as soon as we do not enter ESTABLISHED > state. Your ACK is just ignored and

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread kuznet
Hello! > Connection established, and I send no data But why did you set DEFER_ACCEPT then? 8) I explained when it can be used. > packet. Why would we lose the connection? Not enter "quit", wait until connection will timeout. (It is not very soon normally). And look what happens. Hint: the p

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread bert hubert
On Sun, Oct 22, 2000 at 04:25:39PM +0400, [EMAIL PROTECTED] wrote: > Until actively connecting client will send some data, > service will and must retransmit syn-ack. Otherwise you will lose connection. I don't see why. This is a trace with my patch applied, can you tell me what's wrong with it?

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread kuznet
Hello! > The SYN/ACK handshake appears to go well, and telnet reports a connection > (the daemon doesn't, no data has been sent). However, Linux keeps sending > SYNs, which keep getting ACKed. I'm not sure if this is desired behavior. It > appears to be a side effect o

[PATCH] Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread bert hubert
On Sun, Oct 22, 2000 at 02:03:37PM +0200, bert hubert wrote: > From a userland perspective, it works very well. It just wastes packets. > > > Sorry for advertising it as a working feature. > > The fix should be easy. I'm looking in to it. This patch fixes TCP_DEFER_AC

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread bert hubert
On Sun, Oct 22, 2000 at 11:48:22AM +0200, Andi Kleen wrote: > > Patch follows beneath. On a related note, I'm not sure if this is right > > (connecting to a daemon using TCP_DEFER_ACCEPT) > > Yes, looks very broken. I guess there was a reason why it was never > doc

Re: TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-22 Thread Andi Kleen
On Sat, Oct 21, 2000 at 09:44:31PM +0200, bert hubert wrote: > On Sat, Oct 21, 2000 at 08:50:54AM +0200, Andi Kleen wrote: > > > Linux 2.4 has the "dataready" filter in form of the (currently undocumented) > > TCP_DEFER_ACCEPT option. > > Patch follows beneat

TCP_DEFER_ACCEPT possible bug + documentation patch for tcp.7

2000-10-21 Thread bert hubert
On Sat, Oct 21, 2000 at 08:50:54AM +0200, Andi Kleen wrote: > Linux 2.4 has the "dataready" filter in form of the (currently undocumented) > TCP_DEFER_ACCEPT option. Patch follows beneath. On a related note, I'm not sure if this is right (connecting to a daemon u