diff src/core/ngx_connection.c @ 9227:37ef53ecd6b0

Adjusted ENOBUFS logging level. On local datagram sockets ENOBUFS might legitimately appear due to insufficient space in socket buffers, as seen on BSD systems. Accordingly, ngx_connection_error() now logs it with logging level set for the particular connection errors, either "info" or "error" (instead of "alert", which was previously used).
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 01 Mar 2024 05:42:22 +0300
parents 1c9264603adc
children
line wrap: on
line diff
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -1600,7 +1600,8 @@ ngx_connection_error(ngx_connection_t *c
         || err == NGX_ENETDOWN
         || err == NGX_ENETUNREACH
         || err == NGX_EHOSTDOWN
-        || err == NGX_EHOSTUNREACH)
+        || err == NGX_EHOSTUNREACH
+        || err == NGX_ENOBUFS)
     {
         switch (c->log_error) {