Date: Sat, 15 Mar 2008 17:14:23 +0300 (MSK) From: Dmitry Lohansky <sq@tvfaq.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/121737: zabbix 1.4.4 with ipv6 doens't work correctly Message-ID: <200803151414.m2FEENEY078581@tvfaq.ru> Resent-Message-ID: <200803151440.m2FEe3F9043080@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 121737 >Category: ports >Synopsis: zabbix 1.4.4 with ipv6 doens't work correctly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 15 14:40:03 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Dmitry Lohansky >Release: FreeBSD 7.0-RELEASE i386 >Organization: Z-Solutions Ltd >Environment: System: FreeBSD tvfaq.ru 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Wed Mar 12 04:05:13 MSK 2008 root@tvfaq.ru:/usr/obj/usr/src/sys/TVFAQ i386 >Description: zbx_tcp_accept() (ipv6 version) using select() for wait incoming connection before really accept them. The problem is ndfs calculated incorrect, and finally not contain max descriptor + 1. So, several connection will never accept. >How-To-Repeat: Just install and run zabbix agent and server on the same machine with ipv6 support. >Fix: There is the patch to solve this issue called "ZBX_TCP_READ() failed [Interrupted system call]" from http://www.zabbix.com/forum/showthread.php?t=8870&mode=linear and other related. --- patch-src__libs__zbxcomms__comms.c begins here --- --- ./src/libs/zbxcomms/comms.c.orig 2008-03-15 07:23:00.000000000 +0300 +++ ./src/libs/zbxcomms/comms.c 2008-03-15 07:24:09.000000000 +0300 @@ -698,7 +698,7 @@ for(i = 0; i < s->num_socks; i++) { #if !defined(_WINDOWS) - if(s->sockets[i] > n) + if(s->sockets[i] + 1 > n) n = s->sockets[i] + 1; #endif if(FD_ISSET(s->sockets[i], &sock_set)) --- patch-src__libs__zbxcomms__comms.c ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803151414.m2FEENEY078581>