Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 1996 10:19:50 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        jdp@polstra.com (John Polstra)
Cc:        karl@Mcs.Net, scrappy@ki.net, jgreco@brasil.moneng.mei.com, hackers@freebsd.org
Subject:   Re: Sockets question...
Message-ID:  <199611151719.KAA26294@phaeton.artisoft.com>
In-Reply-To: <199611150258.SAA12064@austin.polstra.com> from "John Polstra" at Nov 14, 96 06:58:11 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> If the socket is not in non-blocking mode, and you do a write(2) of N
> bytes to it, and the write call returns anything other than -1 or N,
> then that is a bug.

You mean "blocking" mode, right?


> If the sending socket returns N, but not all of the data gets to
> the receiving socket, then that is either a bug or a network problem.

Yes.  This is an acceptable event.

However, the receiver should then not have "all frags received" and
therfore a *blocking* read on the receiving socket should hang.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611151719.KAA26294>