MCPcopy Create free account
hub / github.com/apache/trafficserver / check_net_throttle

Function check_net_throttle

src/iocore/net/P_UnixNet.h:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105TS_INLINE bool
106check_net_throttle(ThrottleType t)
107{
108 int connections = net_connections_to_throttle(t);
109
110 if (net_connections_throttle != 0 && connections >= net_connections_throttle) {
111 return true;
112 }
113
114 return false;
115}
116
117TS_INLINE void
118check_throttle_warning(ThrottleType type)

Callers 3

connectUpMethod · 0.85
do_blocking_acceptMethod · 0.85
acceptFastEventMethod · 0.85

Calls 1

Tested by

no test coverage detected