Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+

From: Ilpo Järvinen
Date: Sat May 31 2008 - 08:59:18 EST


On Sat, 31 May 2008, Ingo Molnar wrote:

>
> * Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxx> wrote:
>
> > > Btw, does your distcc perhaps happen enable TCP_DEFER_ACCEPT (there
> > > were some post 2.6.25 changes into it)?
> >
> > Hmm, if so, please try this revert below (I hope I got everything that
> > is related there, gitk is currently broken for me so that viewing many
> > commits quickly is a pain, so I might have accidently missed
> > something)...
>
> 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.

--
i.