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

Ilpo Järvinen
2008-05-31T12:59:18Z

[-- Attachment #1: Type: TEXT/PLAIN, Size: 781 bytes --]

On Sat, 31 May 2008, Ingo Molnar wrote:

>
> * Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> 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.