| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Based on patches by Johannes Baiter <johannes.baiter@bsb-muenchen.de>
and Calin Don.
|
|
|
|
|
|
| |
If of.err is 0, it means that there was a memory allocation error
and no further logging and/or processing is needed. The of.failed
string can be only accessed if of.err is not 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The ev->timedout flag is set on first timer expiration, and never reset
after it. Due to this the code to stop the timer when the timer was
canceled never worked (except in a very specific time frame immediately
after start), and the timer was always armed again. This essentially
resulted in a buffer flush at the end of an event loop iteration.
This behaviour actually seems to be better than just stopping the flush
timer for the whole shutdown, so it is preserved as is instead of fixing
the code to actually remove the timer. It will be further improved by
upcoming changes to preserve cancelable timers if there are other timers
blocking shutdown.
|
| |
|
|
|
|
| |
Found with UndefinedBehaviorSanitizer.
|
|
|
|
|
| |
Specifying the "log_format" directive on levels other than "http"
is deprecated since 73d37e1ccb91 (1.1.11).
|
|
|
|
|
| |
Previously, it could prevent a worker process from exiting
for up to the configured flush timeout.
|
|
|
|
|
| |
It might not work if there were more than one "access_log" directives
pointed to the same file and duplicate buffer parameters.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
log->filter ("if" parameter) was uninitialized when the default value
was being used, which would lead to a crash (SIGSEGV) when access_log
directive wasn't specified in the configuration.
Zero-fill the whole structure instead of zeroing fields one-by-one
in order to prevent similar issues in the future.
Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
|
| |
|
|
|
|
| |
The parameter value specifies a condition under which the request is logged.
|
|
|
|
|
|
| |
On win32, time_t is 64 bits wide by default, and passing an ngx_msec_int_t
argument for %T format specifier doesn't work. This doesn't manifest itself
on other platforms as time_t and ngx_msec_int_t are usually of the same size.
|
|
|
|
|
|
|
| |
While ngx_get_full_name() might have a bit more descriptive arguments,
the ngx_conf_full_name() is generally easier to use when parsing
configuration and limits exposure of cycle->prefix / cycle->conf_prefix
details.
|
|
|
|
| |
The ngx_get_full_name() function takes more readable arguments list.
|
|
|
|
| |
Note: this requires zlib version 1.2.0.4 or above to work.
|
| |
|
|
|
|
|
|
| |
The code refactored in a way to call custom handler that can do appropriate
cleanup work (if any), like flushing buffers, finishing compress streams,
finalizing connections to log daemon, etc..
|
|
|
|
|
| |
Previously a new buffer was allocated for every "access_log" directive with the
same file path and "buffer=" parameters, while only one buffer per file is used.
|
|
|
|
|
| |
Log module counterparts are removed as they aren't used often and
there is no need to preserve them for efficiency.
|
|
|
|
|
| |
It was renamed to $body_bytes_sent in nginx 0.3.10 and the old name is
deprecated since then.
|
| |
|
|
|
|
|
|
|
|
| |
Contains response status code as a 3-digit integer
(with leading zeroes if necessary), or one of the following values:
000 - response status code has not yet been assigned
009 - HTTP/0.9 request is being processed
|
|
|
|
| |
buffer overrun in $status handling.
|
|
|
|
| |
- While here, fixed format specifier for $connection.
|
| |
|
|
|
|
|
|
|
| |
ngx_open_file_info_t moved to a separate function.
This is preparation for the "from=" parameter implementation of the
"disable_symlinks" directive.
|
| |
|
|
|
|
|
|
|
| |
Nuke NGX_PARSE_LARGE_TIME, it's not used since 0.6.30. The only error
ngx_parse_time() can currently return is NGX_ERROR, check it explicitly
and make sure to cast it to appropriate type (either time_t or ngx_msec_t)
to avoid signedness warnings on platforms with unsigned time_t (notably QNX).
|
| |
|
|
|
|
|
|
| |
"access_log" directive fails.
- Added a warning if "log_format" is used in contexts other than "http".
|
|
|
|
|
|
|
| |
Some character sets (notably ISO-8859-1) have C1 control characters in
upper half, make sure to escape them.
Reported by Jesus Olmos Gonzalez.
|
|
|
|
| |
Fixed nearby grammar errors.
|
|
|
|
| |
they have been deleted long ago in 0.5.0-RELEASE
|
|
|
|
| |
patch by Michael Lustfield
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
*) delete surplus variable;
*) on i386/amd64 "while (n) / n--" is smaller than "while (n--)",
because the platforms have no postfix operations
|
| |
|
| |
|
| |
|
|
|
|
| |
*) of.failed to return exact name of failed syscall
|
| |
|
| |
|
|
|
|
| |
*) flush variables in access log
|
| |
|
| |
|
| |
|
| |
|