]> git.ipfire.org Git - thirdparty/squid.git/commit - src/icp_v2.cc
Changes to comm_*_incoming()
authorwessels <>
Thu, 28 May 1998 02:31:31 +0000 (02:31 +0000)
committerwessels <>
Thu, 28 May 1998 02:31:31 +0000 (02:31 +0000)
commitba4f8e5a82791a0fe38afcda497e01b082180c90
tree649e7274eb8411d6efc814b9ae137e27273d5327
parent9945ba2e9c8e3118cd779b9f743e3cee04dba1b9
Changes to comm_*_incoming()

Now, there is a single comm_incoming() function.  This does NOT use
select/poll.  It just calls the read handlers directly for HTTP
and ICP sockets, and relies on them to properly handle EWOULDBLOCK
and friends.

The rate at which comm_incoming gets called is configurable with
'incoming_min_rate' and 'incoming_max_rate'.   Note, these are
kind of "backwards" (being rates) and they indicate how many
other FD's to process before calling comm_incoming().  When the load
is none or low, we call comm_incoming at the 'min_rate' which defaults
to once every 16 FDs.  During high loads, 'max_rate' takes effect
and the default is every 2nd FD.

Also added a histogram to count how many connections/messages are
processed per call to comm_incoming.  This also percipitated some
StatHist.c changes.
src/StatHist.cc
src/cf.data.pre
src/client_side.cc
src/comm.cc
src/icp_v2.cc
src/protos.h
src/stat.cc
src/structs.h
src/typedefs.h