Re: [squid-users] comm_select: kqueue event error: (9) Bad file descriptor

From: Adrian Chadd <[email protected]>
Date: Tue, 17 Jul 2007 09:18:34 +0800

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
Received on Mon Jul 16 2007 - 19:15:14 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT