From owner-freebsd-questions@FreeBSD.ORG Tue Sep 16 08:08:52 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C9545A4 for ; Tue, 16 Sep 2014 08:08:52 +0000 (UTC) Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) (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 1D66764D for ; Tue, 16 Sep 2014 08:08:52 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id i8so5245963qcq.18 for ; Tue, 16 Sep 2014 01:08:50 -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=h206qDrABMqfaxyU/c0Vo2DbbpByV/Mkvy4Q5KShcMk=; b=YSmtFSHblFjApdV5LYRWkDPaAvYmDjyjq0qbGTP7BXYNC+y/4xpt5VCCmeI0R3EEU/ AWLdzvDt9S6ec76k9YoY+LMuMv5bL6WDn9eBln6lKJ/Zg1BFdI1s7KB2s4KGwfYXjPva lzDn0Dl8MipqeRoU9bjf7knR3NTTAPIvXd2zCwZBANlwBjwkO1rdeqLqD4/pFKn9lQ7G blTDpVc3tzcVeZpc6uhc36qp3n7DI0HYKTOuorwY7yGhT12HfsUDudJmetoqaRLq7Zm7 K7/dyH47cnU/4jXfJjrFaKAfM2Yr8Tyb+xmYByW6ewkIz5GttJLK9VYTeAGL08gZXGgN +iUA== MIME-Version: 1.0 X-Received: by 10.140.31.75 with SMTP id e69mr45709844qge.2.1410854930718; Tue, 16 Sep 2014 01:08:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.39.139 with HTTP; Tue, 16 Sep 2014 01:08:50 -0700 (PDT) In-Reply-To: <54168ADA.6050204@diomedia.be> References: <5415EC27.40708@diomedia.be> <54168ADA.6050204@diomedia.be> Date: Tue, 16 Sep 2014 01:08:50 -0700 X-Google-Sender-Auth: kK4WadGn28pxAGpNLTp13pD9uWg 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: Tue, 16 Sep 2014 08:08:52 -0000 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 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 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" > >