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

Function check_transient_accept_error

src/iocore/net/P_UnixNet.h:193–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193TS_INLINE void
194check_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.

Callers 2

do_blocking_acceptMethod · 0.85
acceptFastEventMethod · 0.85

Calls 1

ink_get_hrtimeFunction · 0.85

Tested by

no test coverage detected