From: Stephen Hemminger <stephen@networkplumber.org>
To: Tomas Hozza <thozza@redhat.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>, netdev@vger.kernel.org
Subject: Re: SOCK_STREAM TCP: send() returns success even when other side responded with RST packet
Date: Tue, 19 Feb 2013 07:26:08 -0800 [thread overview]
Message-ID: <20130219072608.7a3a473e@samsung-9> (raw)
In-Reply-To: <2084007858.1889873.1361286562542.JavaMail.root@redhat.com>
> stack did not yet delivered the data.
>
> I'm using TCP because it should guarantee that my data were delivered or
> let me know there was some problem. If this is not a bug, then it is at least
> confusing for TCP.
>
> > To make sure data is delivered, you need additional logic.
>
> To be honest I didn't find any way how to get notified there was a RST packet
> sent as a reply to my previously sent data.
TCP makes no end-to-end (application to application) guarantees.
Applications that need assurance need to do a request-reply at end of
transaction. You should get a good textbook like Stevens for more detail
next prev parent reply other threads:[~2013-02-19 15:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <79866921.1777178.1361257053436.JavaMail.root@redhat.com>
2013-02-19 7:02 ` SOCK_STREAM TCP: send() returns success even when other side responded with RST packet Tomas Hozza
2013-02-19 14:51 ` Eric Dumazet
2013-02-19 15:09 ` Tomas Hozza
2013-02-19 15:26 ` Stephen Hemminger [this message]
2013-02-19 15:27 ` Eric Dumazet
2013-02-19 15:46 ` Tomas Hozza
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=20130219072608.7a3a473e@samsung-9 \
--to=stephen@networkplumber.org \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=thozza@redhat.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