Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2003 10:29:07 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Isaac Gelado <igf@tid.es>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: POSIX Threads
Message-ID:  <20031030162907.GB10973@dan.emsphone.com>
In-Reply-To: <3FA0C064.102@tid.es>
References:  <3F9FAE4D.3020500@tid.es> <20031029162447.GE2284@dan.emsphone.com> <3FA0C064.102@tid.es>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031030162907.GB10973>