From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754908AbYEaQf5 (ORCPT ); Sat, 31 May 2008 12:35:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752972AbYEaQfq (ORCPT ); Sat, 31 May 2008 12:35:46 -0400 Received: from mx2.mail.elte.hu ([157.181.151.9]:56977 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752950AbYEaQfq (ORCPT ); Sat, 31 May 2008 12:35:46 -0400 Date: Sat, 31 May 2008 18:35:01 +0200 From: Ingo Molnar To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= Cc: Peter Zijlstra , LKML , Netdev , "David S. Miller" , "Rafael J. Wysocki" , Andrew Morton , Evgeniy Polyakov Subject: Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ Message-ID: <20080531163501.GB22607@elte.hu> References: <20080526115628.GA31316@elte.hu> <20080529084524.GA24892@elte.hu> <20080529112257.GA18130@elte.hu> <20080530181839.GA31915@elte.hu> <20080531060947.GA26441@elte.hu> <20080531125428.GA22111@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Ilpo Järvinen wrote: > > what is the easiest way to figure out whether my version of distcc > > enables TCP_DEFER_ACCEPT? > > strace distccd (the listening party is the interesting one here, not > the distcc)? > > ...setsockopt(listenfd, SOL_TCP, TCP_DEFER_ACCEPT, &val, sizeof(val)) > seems to be the magic trick that is interestion here. seems to be used: 22003 write(3, "distccd[22003] (dcc_listen_by_ad"..., 62) = 62 22003 listen(4, 10) = 0 22003 setsockopt(4, SOL_TCP, TCP_DEFER_ACCEPT, [1], 4) = 0 i'll queue up your reverts for testing in -tip. Ingo