TS-1067 Fix the global variable that we read periodic_cleanup into.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/5a025615 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/5a025615 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/5a025615 Branch: refs/heads/3.3.x Commit: 5a025615b8c946b596429ec2a7dae4c6741bcfe9 Parents: 5b5c869 Author: Leif Hedstrom <zw...@apache.org> Authored: Tue Mar 26 22:21:07 2013 -0700 Committer: Leif Hedstrom <zw...@apache.org> Committed: Mon Apr 15 14:45:43 2013 -0600 ---------------------------------------------------------------------- iocore/net/UnixUDPNet.cc | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5a025615/iocore/net/UnixUDPNet.cc ---------------------------------------------------------------------- diff --git a/iocore/net/UnixUDPNet.cc b/iocore/net/UnixUDPNet.cc index fc9c31d..446e349 100644 --- a/iocore/net/UnixUDPNet.cc +++ b/iocore/net/UnixUDPNet.cc @@ -69,16 +69,14 @@ initialize_thread_for_udp_net(EThread * thread) new((ink_dummy_for_new *) get_UDPPollCont(thread)) PollCont(thread->mutex); new((ink_dummy_for_new *) get_UDPNetHandler(thread)) UDPNetHandler; - // These are hidden variables that control the amount of memory used by UDP - // packets. As usual, defaults are in RecordsConfig.cc - // This variable controls how often we cleanup the cancelled packets. // If it is set to 0, then cleanup never occurs. REC_ReadConfigInt32(g_udp_periodicFreeCancelledPkts, "proxy.config.udp.free_cancelled_pkts_sec"); + // This variable controls how many "slots" of the udp calendar queue we cleanup. // If it is set to 0, then cleanup never occurs. This value makes sense // only if the above variable is set. - REC_ReadConfigInt32(g_udp_periodicFreeCancelledPkts, "proxy.config.udp.periodic_cleanup"); + REC_ReadConfigInt32(g_udp_periodicCleanupSlots, "proxy.config.udp.periodic_cleanup"); // UDP sends can fail with errno=EAGAIN. This variable determines the # of // times the UDP thread retries before giving up. Set to 0 to keep trying forever.