From: Nivedita Singhvi <niv@us.ibm.com>
To: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
Cc: linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: TCP hangs
Date: Tue, 04 May 2004 09:48:38 -0700 [thread overview]
Message-ID: <4097C966.5080509@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0405041811300.11971@artax.karlin.mff.cuni.cz>
Mikulas Patocka wrote:
>TCP should send RST on received data after shutdown(SHUT_RD) ---
>RFC2525, sections 2.16, 2.17.
>
>
Yes, but that should lead to a shutdown on both ends. If you
have sent a reset, why are you not tearing down your end of
whatever remains of the connection? You have asked the
other side to tear down. RFC 793:
"The receiver of a RST first validates it, then changes
state. If the receiver was in the LISTEN state, it ignores it.
If the receiver was in SYN-RECEIVED state and had previously
been in the LISTEN state, then the receiver returns to the
LISTEN state, otherwise the receiver aborts the connection
and goes to the CLOSED state. If the receiver was in any
other state, it aborts the connection and advises the user
and goes to the CLOSED state."
>It happens that the stack at the client ignores seq number if packet
>doesn't contain any data. I fixed the client so that it replies with ack,
>if sequence number doesn't match. Is it correct fix?
>
That will work.
>The app didn't go away, it just called close.
>
See above.
>App was just not receiving any data, until I stopped the connection in
>browser.
>
>Mikulas
>
>
Hmm, that sounds like a root cause issue, then (why the app wasn't
receiving data in the first place)..
Thanks for the info..
Nivedita
next prev parent reply other threads:[~2004-05-04 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.58.0405021602120.20423@artax.karlin.mff.cuni.cz>
[not found] ` <409583B1.5040906@us.ibm.com>
[not found] ` <Pine.LNX.4.58.0405031238110.18691@artax.karlin.mff.cuni.cz>
2004-05-04 15:37 ` TCP hangs Nivedita Singhvi
2004-05-04 16:26 ` Mikulas Patocka
2004-05-04 16:48 ` Nivedita Singhvi [this message]
2004-05-04 21:20 ` Mikulas Patocka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4097C966.5080509@us.ibm.com \
--to=niv@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mikulas@artax.karlin.mff.cuni.cz \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).