From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 29 04:09:40 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 2A7C416A4CE for ; Wed, 29 Oct 2003 04:09:40 -0800 (PST) Received: from correo.tid.es (tidos.tid.es [193.145.240.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69DCE43FA3 for ; Wed, 29 Oct 2003 04:09:38 -0800 (PST) (envelope-from igf@tid.es) Received: from conversion-daemon.tid.hi.inet by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) id <0HNI00201OYB3E@tid.hi.inet> for freebsd-hackers@freebsd.org; Wed, 29 Oct 2003 13:09:34 +0100 (MET) Received: from tid.es (sophia.hi.inet [10.95.43.243]) by tid.hi.inet (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HNI00262PQW31@tid.hi.inet> for freebsd-hackers@freebsd.org; Wed, 29 Oct 2003 13:08:56 +0100 (MET) Date: Wed, 29 Oct 2003 13:10:53 +0100 From: Isaac Gelado To: freebsd-hackers@freebsd.org Message-id: <3F9FAE4D.3020500@tid.es> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: es-es, es, en-us User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.0.1) Gecko/20020823 Netscape/7.0 Subject: 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: Wed, 29 Oct 2003 12:09:40 -0000 Hello all, I am developing a distributed application based on MICO (mico-2.3.9), which uses Packet Capture Library (PCapLib). In the code, I create a posix thread to execute the pcap_loop function (this function waits until certain number of packets have been captured or infinite if the number is 0). When PCapLib captures a packet and pcap_loop is running it calls to a handle function inside the same thread. 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. Why happens this? Thanks and Regards -- __________________________________________________________ | Isaac Gelado | | | Telefónica I+D | Tlf 983367649 | | Paq. Tec. de Boecillo | | | Valladolid | igf@tid.es | |_______________________________|__________________________| | As gold which he cannot spend will make no man rich | | so knowledge which he cannot apply will make no man wise | |__________________________________________________________|