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/20dacb06 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/20dacb06 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/20dacb06 Branch: refs/heads/master Commit: 20dacb06b94c276f157e57370d66fc663649ba5b Parents: 7a57cd3 Author: Leif Hedstrom <[email protected]> Authored: Tue Mar 26 22:21:07 2013 -0700 Committer: Leif Hedstrom <[email protected]> Committed: Tue Apr 2 13:53:42 2013 -0600 ---------------------------------------------------------------------- iocore/net/UnixUDPNet.cc | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/20dacb06/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.
