Re: FIN_WAIT2 not working



I'm using an embedded Linux version 2.6.25-rc8.

The variable I meant to mention as being 60 was "proc/sys/net/ipv4/tcp_fin_timeout". I understand what FIN_WAIT_2 means and agree that one side is not being conservative in what it sends by sending a
window update after receiving a FIN, and the other is not being liberal in what it accepts by having a window update trigger a RST.

All communications between the Linux machine and MSWindows machines (WinXP pro, Vista and WinXP embedded) where the Linux machine transmits information then calls Close() result in tcp window updates arriving from the Windows machines after the Linux machine has sent it's FIN.

Communications between Windows machines also show tcp window updates arriving from other Windows machines after we've sent them FIN.

The problem is the Linux machine sending the RST. Since this newsgroup keeps rejecting everything I send with a ".pcap" file attached heres a topo of the end of a capture :

the linux machine : 192.168.250.1
WinXP embedded machine 192.168.250.2

No. Time RT Source Destination
Protocol Info
304 0.178455 0.000246 192.168.250.1 192.168.250.2 TCP 52911 > 11000 [ACK] Seq=204430 Ack=1 Win=5840 Len=1448 TSV=736118 TSER=206788
305 0.178472 0.000017 192.168.250.2 192.168.250.1 TCP 11000 > 52911 [ACK] Seq=1 Ack=204430 Win=2755 Len=0 TSV=206788 TSER=736118
306 0.261309 0.082837 192.168.250.2 192.168.250.1 TCP 11000 > 52911 [ACK] Seq=1 Ack=205878 Win=14339 Len=0 TSV=206789 TSER=736118
307 0.261759 0.000450 192.168.250.1 192.168.250.2 TCP 52911 > 11000 [ACK] Seq=205878 Ack=1 Win=5840 Len=1448 TSV=736127 TSER=206789
308 0.261881 0.000122 192.168.250.1 192.168.250.2 TCP 52911 > 11000 [ACK] Seq=207326 Ack=1 Win=5840 Len=1448 TSV=736127 TSER=206789
309 0.262002 0.000121 192.168.250.1 192.168.250.2 TCP 52911 > 11000 [FIN, PSH, ACK] Seq=208774 Ack=1 Win=5840 Len=1256 TSV=736127 TSER=206789
310 0.262013 0.000011 192.168.250.2 192.168.250.1 TCP 11000 > 52911 [ACK] Seq=1 Ack=208774 Win=11443 Len=0 TSV=206789 TSER=736127
311 0.262102 0.000089 192.168.250.2 192.168.250.1 TCP 11000 > 52911 [ACK] Seq=1 Ack=210031 Win=10187 Len=0 TSV=206789 TSER=736127
312 0.283422 0.021320 192.168.250.2 192.168.250.1 TCP [TCP Window Update] 11000 > 52911 [ACK] Seq=1 Ack=210031 Win=61383 Len=0 TSV=206789 TSER=736127
313 0.283635 0.000213 192.168.250.1 192.168.250.2 TCP 52911 > 11000 [RST] Seq=210031 Win=0 Len=0


Linux client connects WinXP server, sends a block of 29 bytes indicating the Linux machine is going to send 2500 "ArticleInformation" objects. The transfer is accomplished but at the end, after the FIN by the Linux client, the WinXP machine sends a window update then the Linux client sends a RST. Since windows handles RST in realtime and the windows application hasn't yet "taken" all of the incoming data, an error is seen in "read()".

Simple situation mais solution unknown.

.



Relevant Pages

  • Re: [SLE] Recommend 100baseFX NIC?
    ... 0000:00:0e.0: Media override to transceiver type 5. ... It appears to be networking related, as if I try to ftp a print job to it, the transfer stalls. ... Furthermore, if I take the NIC from the Win2k machine, and put it in the Linux machine, then the Linux machine can also print fine. ...
    (SuSE)
  • Re: networking
    ... >and I can ping XPhome from Linux 192.168.0.2 ... Prior to getting internet to work I myself would make sure that ... I would suggest letting the Linux machine be the gateway ... ... Linux dials to the internet and the WinXP machine connects through the ...
    (alt.os.linux)
  • Re: Why Linux Printing Sucks>> A Pictorial Tour<<<
    ... >> The photos are in the Linux album and are in 2 different sets. ... >> a LINUX MACHINE running Suse 9.2, ... So EXACTLY WHAT kind of printer is Tillie looking for? ... >> shared by other Windows machines in the house. ...
    (alt.os.linux.suse)
  • Re: Colors of text in terminal.
    ... at the console in Linux is 'linux' and my backspace key works properly. ... > in the monochrome colors I selected for the dtterm session. ... Then use that term to log into the Linux machine. ...
    (comp.os.linux.setup)
  • Re: networking
    ... >the connection performance. ... now with a dhcp server on my Linux machine BUT that comes after basic ... >having linux deliver internet services but I would even more like to ...
    (alt.os.linux)