From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vito Caputo Subject: [QUESTION] AF_UNIX connect behavior when listener backlog=0 Date: Tue, 23 Oct 2018 09:31:41 -0700 Message-ID: <20181023163141.a6nn5pua4o4zndde@shells.gnugeneration.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: linux-kernel Return-path: Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org The current implementation of AF_UNIX sockets immediately establishes a new connection even when the backlog on the listener is zero. Wouldn't it make more sense for connects to become synchronous with accept when the listener is configured with a backlog of zero? That way connects can be reliably refused from the listener side via e.g. closing the listener instead of accepting the connect. I'm not subscribed to netdev, so please take care to include me in any replies on that list. Regards, Vito Caputo