Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
9226:c769217b4a5c | 9227:37ef53ecd6b0 |
---|---|
1598 || err == NGX_ETIMEDOUT | 1598 || err == NGX_ETIMEDOUT |
1599 || err == NGX_ECONNREFUSED | 1599 || err == NGX_ECONNREFUSED |
1600 || err == NGX_ENETDOWN | 1600 || err == NGX_ENETDOWN |
1601 || err == NGX_ENETUNREACH | 1601 || err == NGX_ENETUNREACH |
1602 || err == NGX_EHOSTDOWN | 1602 || err == NGX_EHOSTDOWN |
1603 || err == NGX_EHOSTUNREACH) | 1603 || err == NGX_EHOSTUNREACH |
1604 || err == NGX_ENOBUFS) | |
1604 { | 1605 { |
1605 switch (c->log_error) { | 1606 switch (c->log_error) { |
1606 | 1607 |
1607 case NGX_ERROR_DEBUG: | 1608 case NGX_ERROR_DEBUG: |
1608 level = NGX_LOG_DEBUG; | 1609 level = NGX_LOG_DEBUG; |