Skip site navigation (1)Skip section navigation (2)
Date:      30 Jul 1999 12:01:42 +0300
From:      Ville-Pertti Keinonen <will@iki.fi>
To:        wes@softweyr.com (Wes Peters)
Cc:        hackers@freebsd.org
Subject:   Re: Documenting writev(2) ENOBUFS error
Message-ID:  <86yafy5x55.fsf@not.demophon.com>
In-Reply-To: wes@softweyr.com's message of "29 Jul 1999 17:58:06 %2B0300"
References:  <19990728170119.A47890@kilt.nothing-going-on.org> <37A06B6B.B5BF74CF@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help

wes@softweyr.com (Wes Peters) writes:

>      [ENOBUFS]     Insufficient system buffer space exists to complete the op-
>                    eration.

Do you know what kind of circumstances that error *really* occurs
under?

If it happened with files, that would be a bug and should be fixed.
The call is supposed to block to wait for writes to be possible.  This
applies to stream sockets in most cases, as well.  Based on a quick
look at the code, out-of-band TCP data seems to be the only case where
ENOBUFS might be returned for streams, and that obviously doesn't
apply to write/writev.

As I mentioned to Nik in private mail, for datagram sockets, the
description in send(2) more or less applies.  Programs should
generally use send rather than write for such objects, anyhow.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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