From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 30 08:29:09 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EAAA16A4CE for ; Thu, 30 Oct 2003 08:29:09 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D3CB43FCB for ; Thu, 30 Oct 2003 08:29:08 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h9UGT7JA003976; Thu, 30 Oct 2003 10:29:07 -0600 (CST) (envelope-from dan) Date: Thu, 30 Oct 2003 10:29:07 -0600 From: Dan Nelson To: Isaac Gelado Message-ID: <20031030162907.GB10973@dan.emsphone.com> References: <3F9FAE4D.3020500@tid.es> <20031029162447.GE2284@dan.emsphone.com> <3FA0C064.102@tid.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3FA0C064.102@tid.es> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: POSIX Threads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 16:29:09 -0000 In the last episode (Oct 30), Isaac Gelado said: > Dan Nelson escribió: > >In the last episode (Oct 29), Isaac Gelado said: > >>This schema is working correctly in a linux machine, so when a > >>packet is captured an CORBA event is sent to clients. But, when the > >>server is running under FreeBSD 5.0, the handle function isn't > >>executed when a packet is received. In FreeBSD the handle function > >>is executed, for each packet, after certain time (maybe when the > >>buffer of PCapLib is full), which is a problem because it sends > >>events too fast to clients so the CORBA event service fails. > > > >When you called pcap_open_live, what timeout did you set? > > > I set it to 0, so PCapLib should return the packet inmediatly. > > Can the problem be in the PCapLib implementation? Are you sure 0 means "return immediately"? I think it might mean "Wait forever until the buffer fills". Try a very small timeout value. -- Dan Nelson dnelson@allantgroup.com