From owner-freebsd-net@freebsd.org Mon Jun 12 14:50:48 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56368BFE046 for ; Mon, 12 Jun 2017 14:50:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4411B71FED for ; Mon, 12 Jun 2017 14:50:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5CEok9G008535 for ; Mon, 12 Jun 2017 14:50:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-net@FreeBSD.org Subject: [Bug 186114] net/mpd5 hangs after a certain number of users connect Date: Mon, 12 Jun 2017 14:50:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: peixoto.cassiano@gmail.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: eri@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2017 14:50:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D186114 --- Comment #25 from Cassiano Peixoto --- Ok, i'll apply your patches and back with syslog facility. Do i need to reb= uild the world (userland)? Regarding uwrlck I am using mpd5 web to collect some connections statistics each 60 minutes (it's a cron job). I'm using the following quite simple she= ll script: OUTPUT=3D"/usr/local/etc/tmp/bras.txt" TMP=3D"/tmp/sessions.tmp" TMP2=3D"/tmp/veloc.tmp" TMP3=3D"/tmp/result.tmp" if [ -e $TMP ]; then rm $TMP fi if [ -e $TMP2 ]; then rm $TMP2 fi if [ -e $TMP3 ]; then rm $TMP3 fi SESSIONS=3D`/usr/local/bin/curl -k -l --user admin:xxx http://127.0.0.1:5006/bincmd\?show%20sessions 2>&1 > $TMP` while read session; do if [ "`echo $session |grep -v 'RESULT'`" !=3D "" ]; then #echo $session INTERFACE=3D`echo $session |awk '{print $1}'` IP=3D`echo $session |awk '{print $2}'` USER=3D`echo $session |awk '{print $8}'` MAC=3D`echo $session |awk '{print $9}'` VLAN=3D`echo $session |awk '{print $3}' | awk -F '-' '{print $1}'` DESC=3D`ifconfig ${VLAN} |grep description |awk '{print $2}= '` VELOC=3D`/usr/local/bin/curl -k -l --user admin:xxx http://127.0.0.1:5006/bincmd\?iface%20${INTERFACE}\&show%20customer 2>&1 | egrep 'in#|out#|seconds' > $TMP2` TRAF=3D`/usr/bin/netstat -nbf link -I ${INTERFACE}` TRAF=3D`echo $TRAF| awk '{print $19" "$16" "$22" "$20}' | t= r ' ' ';'` BLOCK=3D`ipfw table 1 list |grep ${IP}` if [ "$BLOCK" =3D "" ]; then BLOCK=3D"0" else BLOCK=3D"1" fi BLOCK2=3D`ipfw table 2 list |grep ${IP}` if [ "$BLOCK2" =3D "" ]; then BLOCK2=3D"0" else BLOCK=3D"1" fi BLOCK2=3D`ipfw table 2 list |grep ${IP}` if [ "$BLOCK2" =3D "" ]; then BLOCK2=3D"0" else BLOCK2=3D"1" fi while read veloc; do if [ "`echo $veloc | grep in`" !=3D "" ]; then BTI=3D$(echo $veloc |awk '{print $5}') fi if [ "`echo $veloc | grep out`" !=3D "" ]; then BTO=3D$(echo $veloc |awk '{print $5}') fi if [ "`echo $veloc | grep 'seconds'`" !=3D "" ]; th= en TIME=3D$(echo $veloc|awk '{print $4}') fi done < $TMP2 echo "${USER};${IP};${TIME};${VLAN};${DESC};${BTI};${BTO};${INTERFACE};${TRAF};$= {BLOCK};${BLOCK2};${MAC}" >> $TMP3 fi done < $TMP cp $TMP3 $OUTPUT --=20 You are receiving this mail because: You are on the CC list for the bug.=