Date: Tue, 08 Jan 2019 15:29:42 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 234753] net/samba47: socket queue overflow stalls server Message-ID: <bug-234753-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234753 Bug ID: 234753 Summary: net/samba47: socket queue overflow stalls server Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: timur@FreeBSD.org Reporter: michael.osipov@siemens.com Assignee: timur@FreeBSD.org Flags: maintainer-feedback?(timur@FreeBSD.org) Our server (FreeBSD 11.2-STABLE i386) recently stalled several times with t= he following in the logs: > Jan 8 09:31:30 blnn714x kernel: sonewconn: pcb 0xc85c4be0: Listen queue = overflow: 193 already in queue awaiting acceptance (25 occurrences) > Jan 8 09:32:47 blnn714x kernel: sonewconn: pcb 0xc85c4be0: Listen queue = overflow: 193 already in queue awaiting acceptance (2 occurrences) > Jan 8 09:33:58 blnn714x kernel: sonewconn: pcb 0xc85c4be0: Listen queue = overflow: 193 already in queue awaiting acceptance (6 occurrences) > Jan 8 09:39:30 blnn714x kernel: sonewconn: pcb 0xc85c4be0: Listen queue = overflow: 193 already in queue awaiting acceptance (2 occurrences) A similar issue has been reported on the Samba mailing list a year ago (https://lists.samba.org/archive/samba/2018-January/213309.html). The socket queue is too small and hardcoded in Samba: > Current listen queue sizes (qlen/incqlen/maxqlen) > Proto Listen Local Address > tcp4 0/0/128 *.22 > tcp4 0/0/50 147.54.64.14.139 > tcp4 0/0/50 147.54.64.14.445 A decent patch was provided (https://lists.samba.org/archive/samba/2018-January/213321.html, https://people.ifm.liu.se/peter/patches/samba/socket_listen_backlog.patch) though not yet applied. I requested this on samba-technical (https://lists.samba.org/archive/samba-technical/2019-January/131870.html). While this might take time, can we apply this patch to 4.7 and 4.8 to easy = the issue and raise connection queue length? The patch looks straight-forward to me. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234753-7788>