delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/10/22:48:57

From: jim AT hosaka DOT SmallWorks DOT COM (Jim Thompson)
Subject: Re: corruption in socket layer?]
10 Oct 1997 22:48:57 -0700 :
Message-ID: <199710101617.LAA02323.cygnus.gnu-win32@beavis.smallworks.com>
To: gnu-win32 AT cygnus DOT com
Cc: DKhosla AT Compaq DOT com, colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp,
jes AT hosaka DOT SmallWorks DOT COM, pacoid AT fringeware DOT com,
pj AT hosaka DOT SmallWorks DOT COM

Colin (and Microsoft) should read RFC793:

  CLOSE is an operation meaning "I have no more data to send."  The
  notion of closing a full-duplex connection is subject to ambiguous
  interpretation, of course, since it may not be obvious how to treat
  the receiving side of the connection.  We have chosen to treat CLOSE
  in a simplex fashion.  The user who CLOSEs may continue to RECEIVE
  until he is told that the other side has CLOSED also.  Thus, a program
  could initiate several SENDs followed by a CLOSE, and then continue to
  RECEIVE until signaled that a RECEIVE failed because the other side
  has CLOSED.  We assume that the TCP will signal a user, even if no
  RECEIVEs are outstanding, that the other side has closed, so the user
  can terminate his side gracefully.  A TCP will reliably deliver all
  buffers SENT before the connection was CLOSED so a user who expects no
  data in return need only wait to hear the connection was CLOSED
  successfully to know that all his data was received at the destination
  TCP.  Users must keep reading connections they close for sending until
  the TCP says no more data.

The second to last sentence makes the behavior of a conformant TCP clear.

Jim
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019