Re: TCP socket close problem



Right. So indeed it looks like the server doesn't really see the
incoming FIN/RST at all.

I added the TCPDEBUG option to the server's kernel; this is the trpt
output on the socket in question:

369 ESTABLISHED:drop (src=212.209.153.82,55478, dst=212.247.27.201,5000)3746edf6@8ed0b5b(win=ffff)<ACK> -> ESTABLISHED
rcv_nxt 3746edf6 rcv_wnd 100a4 snd_una 8ed0b5b snd_nxt 8ed27df snd_max 8ed27df
snd_wl1 3746edf6 snd_wl2 8ed0b5b snd_wnd ffff
370 ESTABLISHED:output (src=212.247.27.201,5000, dst=212.209.153.82,55478)[8ed16c3..8ed16af)@3746edf6(win=ffff)<ACK> -> ESTABLISHED
rcv_nxt 3746edf6 rcv_wnd 100a4 snd_una 8ed0b5b snd_nxt 8ed27df snd_max 8ed27df
snd_wl1 3746edf6 snd_wl2 8ed0b5b snd_wnd ffff
370 ESTABLISHED:drop (src=212.209.153.82,55478, dst=212.247.27.201,5000)3746edf6@8ed0b5b(win=ffff)<ACK,FIN> -> ESTABLISHED
rcv_nxt 3746edf6 rcv_wnd 100a4 snd_una 8ed0b5b snd_nxt 8ed27df snd_max 8ed27df
snd_wl1 3746edf6 snd_wl2 8ed0b5b snd_wnd ffff
370 ESTABLISHED:drop (src=212.209.153.82,55478, dst=212.247.27.201,5000)3746edf7@8ed110f<ACK,RST> -> ESTABLISHED
rcv_nxt 3746edf6 rcv_wnd 100a4 snd_una 8ed0b5b snd_nxt 8ed27df snd_max 8ed27df
snd_wl1 3746edf6 snd_wl2 8ed0b5b snd_wnd ffff
413 ESTABLISHED:output (src=212.247.27.201,5000, dst=212.209.153.82,55478)[8ed0b5b..8ed0b47)@3746edf6(win=ffff)<ACK> -> ESTABLISHED
rcv_nxt 3746edf6 rcv_wnd 100a4 snd_una 8ed0b5b snd_nxt 8ed110f snd_max 8ed27df
snd_wl1 3746edf6 snd_wl2 8ed0b5b snd_wnd ffff

So, indeed, the packets with the FIN and RST (and also, a preceeding
ACK) are dropped by tcp_input. Need to figure out why...

Staffan
.



Relevant Pages

  • Re: Send-Q on UDP socket growing steadily - why?
    ... Send-Q on a moderately active UDP socket keeps growing steadily until it reaches ~128K at which point socket writes start failing. ... The application in question is standard ntpd from Fedora 7, kernel is the latest available for the distro, that is ... "I don't know how to send these packets" mode forever. ...
    (Linux-Kernel)
  • Re: How to fast close socket?
    ... might still be a few stale packets live on the network that the ... kernel might receive after your program terminates. ... was written to the socket but that has not actually been fully sent ... because the client has already called closeit'll generate a RST ...
    (comp.unix.programmer)
  • New kernel...sockets problems, sshd problem,...general problems with 2.6.8.1 kernel installation and
    ... I found what it was...in my kernel was "UNIX DOMAIN SOCKETS" not ... from my DHCP server. ... just like in my other configuration ... READ FROM SOCKET FAILED: CONNECTION RESET BY PEER ...
    (Debian-User)
  • Re: Problem with writing fast UDP server
    ... UDP packets per second. ... socket and threads. ... I wrote a simple case test: client and server. ... The maximum theoretical limit is 14,880 frames per ...
    (comp.lang.python)
  • [patch 1/6] DocBook: changes and extensions to the kernel documentation
    ... I have recompiled Linux kernel 2.6.11.5 documentation for me and our ... decode a file handle fragment and return a &struct dentry ... * enum sock_type - Socket types ...
    (Linux-Kernel)