mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.4.19 TCP-RST ignored by kernel, keeps sending SYN-ACK (no ECN in kernel config)
@ 2002-10-15 17:01 Brak
  2002-10-15 17:56 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Brak @ 2002-10-15 17:01 UTC (permalink / raw)
  To: linux-kernel


I really hope someone else has seen this before.

Summary:
2.4.19 Kernel doesn't close out connection from SYN_RECV state when
properly sequenced TCP-RST is received.  2.4.12-ac3 behaves properly.

Full Description:
I have a load balancer that is doing simple health checks by poking at a
port, lets say 80.  The load balancers sends a SYN to the port.  This puts
the port in the SYN_RECV state.  The Linux server responds with a SYN-ACK.
Next, the load balancer responds with a RST.  When I was running the
2.4.12-ac3 kernel, the socket sitting in SYN_RECV went away, as it should.

With 2.4.19, the socket stays in SYN_RECV, and the kernel keeps sending
SYN-ACK's to the load balancer.  Each time the load balancer receives a
SYN-ACK it send another TCP-RST, which again, causes nothing to happen to
the socket.

10:14:51.089620 < 192.168.50.46.1097 > 192.168.50.254.80: S
779425095:779425095(0) win 16384 <mss 1460>
10:14:51.089656 > 192.168.50.254.80 > 192.168.50.46.1097: S
144111045:144111045(0) ack 779425096 win 5840 <mss 1460> (DF)
10:14:51.093041 < 192.168.50.46.1097 > 192.168.50.254.80: R
779425096:779425096(0) win 1 (DF)
10:14:54.330613 > 192.168.50.254.80 > 192.168.50.46.1097: S
144111045:144111045(0) ack 779425096 win 5840 <mss 1460> (DF)
10:14:54.330796 < 192.168.50.46.1097 > 192.168.50.254.80: R
779425096:779425096(0) win 0 (DF)
10:15:00.330614 > 192.168.50.254.80 > 192.168.50.46.1097: S
144111045:144111045(0) ack 779425096 win 5840 <mss 1460> (DF)
10:15:00.330797 < 192.168.50.46.1097 > 192.168.50.254.80: R
779425096:779425096(0) win 0 (DF)


/proc/versions
Linux version 2.4.19 (root) (gcc version 2.96 20000731
(Red Hat Linux 7.1 2.96-98)) #1 Fri Sep 13 19:08:36 PDT 2002


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

* Re: 2.4.19 TCP-RST ignored by kernel, keeps sending SYN-ACK (no ECN in kernel config)
  2002-10-15 17:01 2.4.19 TCP-RST ignored by kernel, keeps sending SYN-ACK (no ECN in kernel config) Brak
@ 2002-10-15 17:56 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2002-10-15 17:56 UTC (permalink / raw)
  To: brak; +Cc: linux-kernel


You have to set the ACK bit in your packets, otherwise
the "ACK sequence" lacks any meaning.

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

end of thread, other threads:[~2002-10-15 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-15 17:01 2.4.19 TCP-RST ignored by kernel, keeps sending SYN-ACK (no ECN in kernel config) Brak
2002-10-15 17:56 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®