DCCP protocol discussions
 help / color / mirror / Atom feed
From: Gerrit Renker <gerrit@erg.abdn.ac.uk>
To: dccp@vger.kernel.org
Subject: Re: [PATCH 3/10]: Dedicated auxiliary states to support passive-close
Date: Mon, 01 Oct 2007 10:54:27 +0000	[thread overview]
Message-ID: <200710011154.27825@strip-the-willow> (raw)
In-Reply-To: <200707121523.40095@strip-the-willow>

Quoting Arnaldo Carvalho de Melo:
|  > [DCCP]: Dedicated auxiliary states to support passive-close
|  > 
|  > This adds two auxiliary states to deal with passive closes:
|  >   * PASSIVE_1 (reached from OPEN via reception of Close) and
|  >   * PASSIVE_2 (reached from OPEN via reception of CloseReq)
|  
|  
|  Perhaps we should rename PASSIVE_1 (magic number) to PASSIVE_CLOSEREQ
|  and PASSIVE_2 to PASSIVE_CLOSE, and also CLOSEREQ to ACTIVE_CLOSEREQ?
No problems with the first two. With the third I was initially thinking
`this name is from the RFC', but the RFC didn't help much here and your
scheme makes the state much clearer - so, yes, I agree fully with that.
 
|  I'll defer these patches till we get some more discussion. There are
|  many more unrelated patches to work on after all :)
What kind of discussion were you thinking of: in a previous thread Ian and I
reached some agreement already that there is a problem here.

The problem really is in taking the RFC 4340 state machine at face value: if this
is done literally, short-lived connections will wipe the receive queue before the
userland application had a chance to read data; as documented on
	http://www.erg.abdn.ac.uk/users/gerrit/dccp/notes/closing_states/
If you don't believe this, it can readily be tested by writing a small test app which 
sends something like `hello world' to the server.
All data is seen on the wire, but never by the application.

A test app can be found in the directory misc/hello_world of
http://www.erg.abdn.ac.uk/users/gerrit/dccp/apps/dccp_applications_lib.tar.gz

  parent reply	other threads:[~2007-10-01 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-12 14:23 [PATCH 3/10]: Dedicated auxiliary states to support passive-close Gerrit Renker
2007-09-06  4:24 ` Ian McDonald
2007-09-30 14:06 ` [PATCH 3/10]: Dedicated auxiliary states to support Arnaldo Carvalho de Melo
2007-10-01 10:54 ` Gerrit Renker [this message]
2007-10-21  1:35 ` [PATCH 3/10]: Dedicated auxiliary states to support passive-close Ian McDonald

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=200710011154.27825@strip-the-willow \
    --to=gerrit@erg.abdn.ac.uk \
    --cc=dccp@vger.kernel.org \
    /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