Re: squid + libevent

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Thu, 08 Jun 2006 14:57:41 +0200

welcome to squid-dev!

ons 2006-06-07 klockan 23:02 -0700 skrev Bharath Devanathan:
> I am trying to get squid 2.6 to use libevent. I looked at the source and
> have a plan on how to go about this. Before I embark on doing this, can
> someone review this and let me know if I am on the right track ?
>
> 1) create a new file ( comm_libevent.c), based on comm_epoll.c
> 2) modify struct _fde to be aware of libevent structures and remove the
> fields that are necessary for epoll.
> 3) get rid of the "#ifdef USE_EPOLL" in squid.h, structs.h and comm.c
> 4) Implement functions in comm_libevent.c, using libevent. These
> functions basically replicate the behavior present in epoll.c
>
> I think that sums up the changes needed. How does that sound ?

Sounds somewhat reasonable, except that it has become simpler in the
last few days. You no longer need to touch any of the core files, just
add comm_libevent.c and make Squid build with this..

kqueue support was added some hours ago, but we are still interested in
libevent support.

Regards
Henrik

Received on Thu Jun 08 2006 - 06:57:45 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jun 30 2006 - 12:00:02 MDT