From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 29 05:47:47 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 99FEC16A4CE for ; Wed, 29 Oct 2003 05:47:47 -0800 (PST) Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 0BD2643FDF for ; Wed, 29 Oct 2003 05:47:47 -0800 (PST) (envelope-from q_dolan@yahoo.com.au) Received: from q.onthenet.com.au (HELO ?192.168.100.154?) (q?dolan@203.10.89.214 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 29 Oct 2003 13:47:46 -0000 From: Q To: Isaac Gelado In-Reply-To: <3F9FAE4D.3020500@tid.es> References: <3F9FAE4D.3020500@tid.es> Message-Id: <1067435261.793.7.camel@boxster.onthenet.com.au> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 29 Oct 2003 23:47:42 +1000 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 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: Wed, 29 Oct 2003 13:47:47 -0000 Why don't you either coalesce the events or throttle your send-event frequency so that it waits a minimum amount of time between sending each CORBA event. That should make your application more robust and better able to handle any receive rate you care to throw at it. As for why it happens.. I don't know sorry. Seeya...Q On Wed, 2003-10-29 at 22:10, Isaac Gelado wrote: > 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