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

Function check_throttle_warning

src/iocore/net/P_UnixNet.h:117–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117TS_INLINE void
118check_throttle_warning(ThrottleType type)
119{
120 ink_hrtime t = ink_get_hrtime();
121 if (t - last_throttle_warning > NET_THROTTLE_MESSAGE_EVERY) {
122 last_throttle_warning = t;
123 int connections = net_connections_to_throttle(type);
124 Warning("too many connections, throttling. connection_type=%s, current_connections=%d, net_connections_throttle=%d",
125 type == ACCEPT ? "ACCEPT" : "CONNECT", connections, net_connections_throttle);
126 }
127}
128
129TS_INLINE int
130change_net_connections_throttle(const char *token, RecDataT data_type, RecData value, void *data)

Callers 2

connectUpMethod · 0.85
do_blocking_acceptMethod · 0.85

Calls 2

ink_get_hrtimeFunction · 0.85

Tested by

no test coverage detected