Re: [PATCH] tcp hang solved

From: Sebastian Benoit (benoit-lists@fb12.de)
Date: Mon Nov 04 2002 - 06:38:25 EST


David S. Miller(davem@redhat.com)@2002.11.04 02:36:20 +0000:
> From: Andries.Brouwer@cwi.nl
> Date: Mon, 4 Nov 2002 01:27:26 +0100 (MET)
>
> So, the following patch should be appropriate.
>
> Thanks for this fix, I will apply it. I have no idea why I didn't
> spot this while 'porting' this patch from 2.4.x to 2.5.x :)

This does _not_ fix the tcp hang i reported on netdev 2 weeks ago,
i can still reproduce this with 2.5.45-latest-bk + this patch:

hostA: ./socket -s 3000 > /dev/null
hostA: ssh hostC
hostB: cat largefile | ./socket hostA 3000

  Now typing stuff in the ssh-connection to hostC will
  cause this connection to hang. [*]
  The connection between B and A is not affected.

This bug was introduced in 2.5.43-bk1, previous versions are ok.
I think it might be
ChangeSet 1.781.1.68 2002/10/15 19:01:33 kuznet@mops.inr.ac.ru
but i'm not sure.

[*] tcpdump output of the SSH connection at the moment it stops working:
the first packets are ok. 80.76.225.240 = hostA, 80.76.224.45 = hostC

12:27:06.846266 80.76.225.240.32921 > 80.76.224.45.ssh: P 3072:3120(48) ack 897 win 63712 <nop,nop,timestamp 2925577 602150234> (DF) [tos 0x10]
12:27:06.895276 80.76.224.45.ssh > 80.76.225.240.32921: P 897:945(48) ack 3120 win 15928 <nop,nop,timestamp 602151959 2925577> (DF) [tos 0x10]
12:27:06.895316 80.76.225.240.32921 > 80.76.224.45.ssh: . ack 945 win 63712 <nop,nop,timestamp 2925626 602151959> (DF) [tos 0x10]
12:27:07.095430 80.76.225.240.32921 > 80.76.224.45.ssh: P 3120:3168(48) ack 945 win 63712 <nop,nop,timestamp 2925826 602151959> (DF) [tos 0x10]
12:27:07.107633 80.76.224.45.ssh > 80.76.225.240.32921: P 897:945(48) ack 3120 win 15928 <nop,nop,timestamp 602151981 2925577> (DF) [tos 0x10]
12:27:07.107668 80.76.225.240.32921 > 80.76.224.45.ssh: . ack 945 win 63712 <nop,nop,timestamp 2925839 602151981,nop,nop,sack sack 1 {897:945} > (DF) [tos 0x10]
12:27:07.124619 80.76.225.240.32921 > 80.76.224.45.ssh: P 3168:3216(48) ack 945 win 63712 <nop,nop,timestamp 2925856 602151981> (DF) [tos 0x10]
12:27:07.304553 80.76.225.240.32921 > 80.76.224.45.ssh: P 3120:3168(48) ack 945 win 63712 <nop,nop,timestamp 2926036 602151981> (DF) [tos 0x10]
12:27:07.328656 80.76.224.45.ssh > 80.76.225.240.32921: P 945:993(48) ack 3168 win 15928 <nop,nop,timestamp 602152003 2926036> (DF) [tos 0x10]
[ssh stops working around here]
12:27:07.328689 80.76.225.240.32921 > 80.76.224.45.ssh: . ack 993 win 63712 <nop,nop,timestamp 2926060 602152003> (DF) [tos 0x10]
12:27:07.724482 80.76.225.240.32921 > 80.76.224.45.ssh: P ack 993 win 63712 <nop,nop,timestamp 2926456 602152003> (DF) [tos 0x10]
12:27:08.564354 80.76.225.240.32921 > 80.76.224.45.ssh: P ack 993 win 63712 <nop,nop,timestamp 2927296 602152003> (DF) [tos 0x10]
12:27:10.244202 80.76.225.240.32921 > 80.76.224.45.ssh: P ack 993 win 63712 <nop,nop,timestamp 2928976 602152003> (DF) [tos 0x10]
12:27:13.603809 80.76.225.240.32921 > 80.76.224.45.ssh: P ack 993 win 63712 <nop,nop,timestamp 2932336 602152003> (DF) [tos 0x10]
12:27:20.323005 80.76.225.240.32921 > 80.76.224.45.ssh: P ack 993 win 63712 <nop,nop,timestamp 2939056 602152003> (DF) [tos 0x10]

/B.

-- 
Sebastian Benoit <benoit-lists@fb12.de>
My mail is GnuPG signed -- Unsigned ones are bogus -- http://www.gnupg.org/
GnuPG 0x5BA22F00 2001-07-31 2999 9839 6C9E E4BF B540  C44B 4EC4 E1BE 5BA2 2F00


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:32 EST