diff src/core/ngx_conf_file.c @ 9296:af5b47569cb2

Core: fixed ENOSPC handling for error logs. For each connection a new ngx_log_t structure is created, and saving anything into disk_full_time field in this structure doesn't affect other connections. Fix is to move the disk_full_time field into the ngx_open_file_t structure.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 25 Jun 2024 22:57:57 +0300
parents 3108d4d668e4
children
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c	Tue Jun 25 21:44:50 2024 +0300
+++ b/src/core/ngx_conf_file.c	Tue Jun 25 22:57:57 2024 +0300
@@ -951,6 +951,7 @@
         file->name = *name;
     }
 
+    file->disk_full_time = 0;
     file->flush = NULL;
     file->data = NULL;