Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2014 01:08:50 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Bram Van Steenlandt <bram@diomedia.be>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Listen queue guestion
Message-ID:  <CAJ-Vmo=0n=mx=mWWb+PPXfSezBubP1pmG2fHV2V-5Lh1TeE1Tg@mail.gmail.com>
In-Reply-To: <54168ADA.6050204@diomedia.be>
References:  <5415EC27.40708@diomedia.be> <CAJ-VmomZ8PEn-6DUmF6HfRLcst72aRDVfiiiG_N1uBT3_nZJsw@mail.gmail.com> <54168ADA.6050204@diomedia.be>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Hm, ok. It's a UNIX domain socket. I kinda thought those also obeyed the sysctl.

The sysctl has to be set -before- listen() is called.

Also, in BSD, if the listen queue parameter to listen() is < 0, it
defaults to the sysctl maximum.


-a


On 14 September 2014 23:44, Bram Van Steenlandt <bram@diomedia.be> wrote:
> Hi,
>
> I use python, here the parameters are (socket.AF_UNIX,socket.SOCK_STREAM)
>
> Bram
> op 14-09-14 23:05, Adrian Chadd schreef:
>
>> Hi!
>>
>> What kind of sockets is it specifically using?
>>
>>
>> -a
>>
>>
>> On 14 September 2014 12:27, Bram Van Steenlandt <bram@diomedia.be> wrote:
>>>
>>> Hi,
>>>
>>> I'm porting an plc automation system to freebsd and while doing so I got
>>> errors like these:
>>> sonewconn: pcb 0xfffff8000cecc870: Listen queue overflow: 76 already in
>>> queue awaiting acceptance
>>>
>>> With the help of netstat I've found the problem, 2 programs communicate
>>> with
>>> ipc file like sockets and the "client" was connecting too fast (it was
>>> connecting and disconnecting in a small for loop).
>>>
>>> Still, on linux this worked and there will be cases where I may bump in
>>> to
>>> this limit again (a lot of different programs communicate with one master
>>> program over ipc).
>>>
>>> I've found kern.ipc.somaxconn but this seems to be only for TCP
>>> connections.
>>>
>>> Is there a sysctl or kernel parameter that allows me to set this queue a
>>> bit
>>> larger ?
>>>
>>> Thx
>>> Bram
>>>
>>> _______________________________________________
>>> freebsd-questions@freebsd.org mailing list
>>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>> To unsubscribe, send any mail to
>>> "freebsd-questions-unsubscribe@freebsd.org"
>>
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to
>> "freebsd-questions-unsubscribe@freebsd.org"
>
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=0n=mx=mWWb+PPXfSezBubP1pmG2fHV2V-5Lh1TeE1Tg>