internal SITEreader

Russ Allbery rra at stanford.edu
Sat Feb 1 19:30:41 UTC 2003


Marco d'Itri <md at Linux.IT> writes:
> On Feb 01, "Jeffrey M. Vinocur" <jeff at litech.org> wrote:

>> Quick background:  the stuff in innd/chan.c is overlaid on select(),
>> essentially.  We maintain a bunch of "channels" (file descriptors plus
>> lots of extra state), and mark some of them for reading or writing with
>> the FD_SET FD_CLR FD_ZERO macros described in the select()
>> documentation.

> I started looking at the code and I tought that I could mitigate the
> effects of the bug by cleaning the bit of the fd in RCHANmask every time
> SITEreader is called. Does this sound reasonable?

Yes, that's exactly the approach I was going to work on this weekend.  If
you end up with a patch, that will save me from work.  :)

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list