| 115 | } |
| 116 | |
| 117 | TS_INLINE void |
| 118 | check_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 | |
| 129 | TS_INLINE int |
| 130 | change_net_connections_throttle(const char *token, RecDataT data_type, RecData value, void *data) |
no test coverage detected