Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763964AbXLPXW7 (ORCPT ); Sun, 16 Dec 2007 18:22:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757592AbXLPXWs (ORCPT ); Sun, 16 Dec 2007 18:22:48 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:56634 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756217AbXLPXWr (ORCPT ); Sun, 16 Dec 2007 18:22:47 -0500 Date: Sun, 16 Dec 2007 15:22:35 -0800 (PST) Message-Id: <20071216.152235.213233734.davem@davemloft.net> To: davidsen@tmr.com Cc: herbert@gondor.apana.org.au, simon@fire.lp0.eu, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: sockets affected by IPsec always block (2.6.23) From: David Miller In-Reply-To: <4765AAFC.3040406@tmr.com> References: <20071205001230.GA11391@gondor.apana.org.au> <20071204.223023.262159049.davem@davemloft.net> <4765AAFC.3040406@tmr.com> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1567 Lines: 38 From: Bill Davidsen Date: Sun, 16 Dec 2007 17:47:24 -0500 > David Miller wrote: > > From: Herbert Xu > > Date: Wed, 5 Dec 2007 11:12:32 +1100 > > > >> [INET]: Export non-blocking flags to proto connect call > >> > >> Previously we made connect(2) block on IPsec SA resolution. This is > >> good in general but not desirable for non-blocking sockets. > >> > >> To fix this properly we'd need to implement the larval IPsec dst stuff > >> that we talked about. For now let's just revert to the old behaviour > >> on non-blocking sockets. > >> > >> Signed-off-by: Herbert Xu > > > > We made an explicit decision not to do things this way. > > > > Non-blocking has a meaning dependant upon the xfrm_larval_drop sysctl > > setting, and this is across the board. If xfrm_larval_drop is zero, > > non-blocking semantics do not extend to IPSEC route resolution, > > otherwise it does. > > > > If he sets this sysctl to "1" as I detailed in my reply, he'll > > get the behavior he wants. > > > I think you for the hint, but I would hardly call this sentence > "detailed" in terms of being a cookbook solution to the problem. I guess "echo '1' >/proc/sys/net/core/xfrm_larval_drop" is not explicit enough? What more would you like me to say? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/