| 191 | } |
| 192 | |
| 193 | TS_INLINE void |
| 194 | check_transient_accept_error(int res) |
| 195 | { |
| 196 | ink_hrtime t = ink_get_hrtime(); |
| 197 | if (!last_transient_accept_error || t - last_transient_accept_error > TRANSIENT_ACCEPT_ERROR_MESSAGE_EVERY) { |
| 198 | last_transient_accept_error = t; |
| 199 | Warning("accept thread received transient error: errno = %d", -res); |
| 200 | #if defined(__linux__) |
| 201 | if (res == -ENOBUFS || res == -ENFILE) |
| 202 | Warning("errno : %d consider a memory upgrade", -res); |
| 203 | #endif |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /** Disable reading on the NetEvent @a ne. |
| 208 | @param nh Nethandler that owns @a ne. |
no test coverage detected