From owner-freebsd-questions@FreeBSD.ORG Sun Sep 14 21:05:03 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCD76C46 for ; Sun, 14 Sep 2014 21:05:03 +0000 (UTC) Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EF0D7FB for ; Sun, 14 Sep 2014 21:05:03 +0000 (UTC) Received: by mail-qg0-f51.google.com with SMTP id e89so3005624qgf.24 for ; Sun, 14 Sep 2014 14:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=EbXbvwWaVdpNyZTu5mITHwomVBjZaRqdiIcWMzIeSPI=; b=cCk2clivtJjqL/juWBLYkn9/VhSJk4eTxH48XA9KtU9sJO3Zv2GmWxYsr65v8wpNOt oWFjEb8B4C4+gAz4+7vWFY8zQwQFinlmd9zww/A2JljQ/2meBqnui7tSNfJ7fDY09vch yw38XcPyW4Rg3ex7/10YZKazIfPMz9uyLgA7ekYFVJY2cDEZCAquIW4EZBTcd4/eFvC0 7KbgdKkOzeGkBMm5g72Q64T/XStN+bwmYjU8HKeXMzThBR9SCvVQ2XItDw9YdYgWasng 3F8FdMC6UoSFgIDjh2DpxhCYiYgbSaVf/prP0DcVRhqomuLNAdJH+L4hwBJNoQakpusK M9Cw== MIME-Version: 1.0 X-Received: by 10.224.36.4 with SMTP id r4mr31021257qad.69.1410728702150; Sun, 14 Sep 2014 14:05:02 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.39.139 with HTTP; Sun, 14 Sep 2014 14:05:02 -0700 (PDT) In-Reply-To: <5415EC27.40708@diomedia.be> References: <5415EC27.40708@diomedia.be> Date: Sun, 14 Sep 2014 14:05:02 -0700 X-Google-Sender-Auth: bY93kUo8iWX8HC60GxVAe8wyV3A Message-ID: Subject: Re: Listen queue guestion From: Adrian Chadd To: Bram Van Steenlandt Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2014 21:05:03 -0000 Hi! What kind of sockets is it specifically using? -a On 14 September 2014 12:27, Bram Van Steenlandt 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"