From owner-freebsd-net Tue Mar 13 17:56:41 2001 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id C54A937B718 for ; Tue, 13 Mar 2001 17:56:38 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id UAA42646; Tue, 13 Mar 2001 20:56:32 -0500 (EST) (envelope-from wollman) Date: Tue, 13 Mar 2001 20:56:32 -0500 (EST) From: Garrett Wollman Message-Id: <200103140156.UAA42646@khavrinen.lcs.mit.edu> To: Lars Eggert Cc: net@FreeBSD.ORG Subject: Changing UDP select() behavior In-Reply-To: <3AAEBEAE.F823CB8E@isi.edu> References: <3AAEBEAE.F823CB8E@isi.edu> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < said: > I'm considering changing this, so that a select-to-write on a UDP socket > will block until queue space becomes available. Impossible. The only way to find out whether a packet (or set of packets, or a fragment of a packet) would be successfully enqueued is to try it. Even then there's no guarantee that it will get sent. (Actually, ``impossible'' is too strong -- we could restructure the entire network stack to make it possible to speculatively send packets just to support this change in select() semantics. It's merely impractical.) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message