INN commit: trunk (10 files)

Russ Allbery Russ_Allbery at isc.org
Sun Jun 12 09:12:29 UTC 2005


    Date: Sunday, June 12, 2005 @ 02:12:27
  Author: eagle
Revision: 7322

Go through innd/chan.c thoroughly, since I needed to take some time to
learn exactly how it worked anyway.  Reformat all of the code, collect
all of the global variables into a single struct, and break apart some
excessively long functions into multiple functions.  The code doesn't
wander way off to the side any more.

In the process, clean up and simplify a few things.  Resizing the input
buffer is now a separate function rather than being repeated three times.
There is now a single facility for handling prioritized channels that is
used for the control channel and the remconn channels.  The remconn
channel is always prioritized now; there is no longer a hidden #define
that can be changed.  Always process at least four channels, instead of
three, so that the control channel and two remconn channels cannot starve
the rest of innd.

Add a fairly simple test suite for the channel handling portion of innd,
as a sanity check and a base to expand upon later.

Added:
  trunk/tests/innd/chan-t.c
Modified:
  trunk/MANIFEST
  trunk/innd/chan.c
  trunk/innd/innd.h
  trunk/innd/nc.c
  trunk/innd/rc.c
  trunk/tests/Makefile
  trunk/tests/TESTS
  trunk/tests/innd/
  trunk/tests/innd/artparse-t.c

-------------------------+
 MANIFEST                |    1 
 innd/chan.c             | 1694 +++++++++++++++++++++++-----------------------
 innd/innd.h             |  107 +-
 innd/nc.c               |    2 
 innd/rc.c               |    2 
 tests/Makefile          |   21 
 tests/TESTS             |    1 
 tests/innd/artparse-t.c |    2 
 tests/innd/chan-t.c     |  116 +++
 9 files changed, 1067 insertions(+), 879 deletions(-)


More information about the inn-committers mailing list