comparison 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
comparison
equal deleted inserted replaced
9295:c5623963c29e 9296:af5b47569cb2
949 } else { 949 } else {
950 file->fd = ngx_stderr; 950 file->fd = ngx_stderr;
951 file->name = *name; 951 file->name = *name;
952 } 952 }
953 953
954 file->disk_full_time = 0;
954 file->flush = NULL; 955 file->flush = NULL;
955 file->data = NULL; 956 file->data = NULL;
956 957
957 return file; 958 return file;
958 } 959 }