Thanx guys. I have noted, that this error does appear more often as the server gets busy. It is at this time, that our problems start to appear. regards On Tue, 2007-07-17 at 09:18 +0800, Adrian Chadd wrote: > On Mon, Jul 16, 2007, Tek Bahadur Limbu wrote: > > > [snip stuff about kqueue and EBADF] > > > Adrian may have answers regarding this messages? > > Yup! > > [EBADF] The specified descriptor is invalid. > > IIRC, its because sometimes (under heavy loads) you'll end up hitting a minor > race condition where the FD has IO pending and in the list of updates and > then its close()d. What happens there ATM is its left in the list; its > passed to kevent which sees that FD is closed and returns that particular > error. > > I know how to fix it, but its (as always) a question of time. > If someone would like to sponsor a few hundred dollars then I'll > add it to my queue of paid work and get around to it in, I hope, > a couple of weeks. > > It -should- be cosmetic though. It shouldn't stop the processing of the > rest of the events in the list. I'd still like to get rid of it though > so there's absolutely no way it could interfere. > > > > Adrian >