linux-l: Regelmäßiges, sporadisches Ein
Stefan Bund
asbund at usa.net
Sa Mär 13 11:27:53 CET 1999
Stefan Bund <asbund at usa.net> writes:
> Leider immer noch ein bischen ratlos... Vielleicht hilft ja tcpdump...
>
Also, tcpdump hat nix geliefert. Komisch. aber dann habe ich mich an
netstat erinnert, und da:
# netstat -t
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:nntp localhost:4171 ESTABLISHED
tcp 0 0 localhost:4171 localhost:nntp ESTABLISHED
tcp 0 1 bund.dialup.fu-ber:3049 netfold.com:www FIN_WAIT1
Was ist FIN_WAIT1? ... Ähh ... mal kurz im kernel source nachsehen
... Aha, aus net/ipv4/tcp.c:
* TCP_FIN_WAIT1 our side has shutdown, waiting to complete
* transmission of remaining buffered data
Schön. Was macht man 'nu dagegen ??? Ähh... auch aus tcp.c (in
tcp_close_state):
/*
* This is a (useful) BSD violating of the RFC. There is a
* problem with TCP as specified in that the other end could
* keep a socket open forever with no application left this end.
* We use a 3 minute timeout (about the same as BSD) then kill
* our end. If they send after that then tough - BUT: long enough
* that we won't make the old 4*rto = almost no time - whoops
* reset mistake.
*/
Hmm.. Aber das scheint sich auf den FIN_WAIT2 state zu
beziehen. (siehe sourcecode und include/net/tcp.h) Wo ham wa denn den
timeout zu FIN_WAIT1? gibt's da einen? Vieleicht passiert der timeout
in einer anderen Protokollebene? Grmpfff... Wird mir langsam zu
kompliziert. Falls sich hier einer mit TCP/IP entsprechend gut
auskennt währe ich für eine Erklärung dankbar.
Stefan (ratlos)...
PS: Die Verbindung habe ich mit Netscape aufgebaut, der Fehler ist
aber nicht wirklich reprodizierbar, taucht halt ab und zu (mit
verschiedenen Adressen) auf. Ich habe auch garantiert, das kein
netscape-Prozess mehr hängenbleibt...
--
@ @
--------------------------------oOO-(_)-OOo--------------------------------
Stefan Bund, student of physics at | M$: Our software of tomorrow will
Freie Universitaet Berlin, Germany | make sure that on your hardware
| of tomorrow everything will work
email: asbund at usa.net | at the usual speed. ;-)
---------------------------------------------------------------------------
Mehr Informationen über die Mailingliste linux-l