kayws426 / embox

Automatically exported from code.google.com/p/embox
0 stars 1 forks source link

tcp close misfunction #577

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. x86/zrv
2. rlogin to host, usual work and "exit" on remote shell
3. Try to reconnect

What is the expected output? What do you see instead?
This log appear (10 is remote host, 16 is local embox)

IP 10.513 > 16.513: Flags [P.], seq 124:134, ack 46, win 114, options 
[nop,nop,TS val 6170337 ecr 933069], length 10
IP 10.513 > 16.513: Flags [F.], seq 134, ack 46, win 114, options [nop,nop,TS 
val 6170337 ecr 933069], length 0
<logout occurs>
IP 16.513 > 10.513: Flags [.], ack 134, win 16384, length 0
IP 16.513 > 10.513: Flags [.], ack 135, win 16384, length 0
IP 16.513 > 10.513: Flags [F.], seq 46, ack 135, win 16384, length 0
IP 10.513 > 16.513: Flags [R], seq 877817, win 0, length 0
<trying to reconnect>
IP 16.513 > 10.513: Flags [S], seq 100, win 16384, options [mss 16396,sackOK,TS 
val 933069 ecr 0,nop,wscale 7], length 0
IP 10.513 > 16.513: Flags [S.], seq 2859136088, ack 101, win 14480, options 
[mss 1460,sackOK,TS val 6220203 ecr 933069,nop,wscale 7], length 0
IP 16.513 > 10.513: Flags [R], seq 100, win 16384, length 0
IP 10.513 > 16.513: Flags [S.], seq 2859136088, ack 101, win 14480, options 
[mss 1460,sackOK,TS val 6220504 ecr 933069,nop,wscale 7], length 0
IP 16.513 > 10.513: Flags [R], seq 100, win 16384, length 0

Socket which send reset and connecting socket are not the same. Can guess, that 
no socket unhash occur. Also, double ack on FIN is confusing.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by drakon.m...@gmail.com on 28 Mar 2013 at 4:07

GoogleCodeExporter commented 9 years ago

Original comment by ki.stfu on 28 Mar 2013 at 4:10