summaryrefslogtreecommitdiffhomepage
path: root/src/core (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2014-12-12Autoindex: implemented JSON output format.Valentin Bartenev2-0/+53
2014-12-04Version bump.Maxim Dounin1-2/+2
2014-11-28Typo.Maxim Dounin1-1/+1
2014-11-20Syslog: allowed underscore symbol in tag (ticket #667).Vladimir Homutov1-2/+3
2014-11-20Resolver: fixed debug event logging.Ruslan Ermilov2-17/+23
In 954867a2f0a6, we switched to using resolver node as the timer event data. This broke debug event logging. Replaced now unused ngx_resolver_ctx_t.ident with ngx_resolver_node_t.ident so that ngx_event_ident() extracts something sensible when accessing ngx_resolver_node_t as ngx_connection_t.
2014-11-20Resolver: fixed use-after-free memory access.Ruslan Ermilov1-4/+4
In 954867a2f0a6, we switched to using resolver node as the timer event data, so make sure we do not free resolver node memory until the corresponding timer is deleted.
2014-08-13Moved the code for coalescing file buffers to a separate function.Valentin Bartenev2-0/+44
2014-11-19Renamed ngx_handle_sent_chain() to ngx_chain_update_sent().Valentin Bartenev2-2/+2
No functional changes.
2014-08-25Events: removed broken thread support from event timers.Valentin Bartenev2-8/+4
It's mostly dead code. And the idea of thread support for this task has been deprecated.
2014-10-28Version bump.Valentin Bartenev1-2/+2
2014-10-02Core: fixed buffer overrun when hash max_size reached.Yichun Zhang1-0/+2
2014-10-02Version bump.Valentin Bartenev1-2/+2
2014-08-26Syslog: improved error handling of unix domain sockets.Vladimir Homutov1-2/+24
If a syslog daemon is restarted and the unix socket is used, further logging might stop to work. In case of send error, socket is closed, forcing a reconnection at the next logging attempt.
2014-09-01Syslog: enabled logging of send errors.Vladimir Homutov2-5/+10
The ngx_cycle->log is used when sending the message. This allows to log syslog send errors in another log. Logging to syslog after its cleanup handler has been executed was prohibited. Previously, this was possible from ngx_destroy_pool(), which resulted in error messages caused by attempts to write into the closed socket. The "processing" flag is renamed to "busy" to better match its semantics.
2014-08-13Moved the code for adjusting sent buffers in a separate function.Valentin Bartenev2-0/+47
2014-09-17Version bump.Valentin Bartenev1-2/+2
2014-09-08Core: ngx_regex_compile() error handling fixes.Maxim Dounin1-3/+11
Now we actually return NGX_ERROR on errors, and provide an error string for memory allocation errors. Reported by Markus Linnala.
2014-09-01Events: processing of posted events changed from LIFO to FIFO.Valentin Bartenev1-2/+2
In theory, this can provide a bit better distribution of latencies. Also it simplifies the code, since ngx_queue_t is now used instead of custom implementation.
2014-09-01Events: removed broken thread support from posted events.Valentin Bartenev2-31/+1
It's mostly dead code. And the idea of thread support for this task has been deprecated.
2014-08-19Resolver: notify all waiting requests on timeout.Ruslan Ermilov1-8/+16
If a "resolver_timeout" occurs, only the first waiting request was notified. Other requests may hang forever.
2014-08-05Version bump.Maxim Dounin1-2/+2
2014-08-01Core: improved ngx_pstrdup() error handling.Tatsuhiko Kubo1-0/+3
2014-06-26Core: use uppercase hexadecimal digits for percent-encoding.Piotr Sikora1-1/+1
RFC3986 says that, for consistency, URI producers and normalizers should use uppercase hexadecimal digits for all percent-encodings. This is also what modern web browsers and other tools use. Using lowercase hexadecimal digits makes it harder to interact with those tools in case when use of the percent-encoded URI is required, for example when $request_uri is part of the cache key. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
2014-07-24Core: fixed default log initialization.Vladimir Homutov1-4/+6
The ngx_log_insert() function may invalidate pointer passed to it, so make sure to don't use it after the ngx_log_insert() call.
2014-07-16Resolver: fixed resend on malformed responses.Ruslan Ermilov1-2/+27
DNS request resend on malformed responses was broken in 98876ce2a7fd (1.5.8). Reported by Pramod Korathota.
2014-06-18Core: bugfix for the ngx_slab_max_size case.Jianjun Zheng1-1/+1
2014-07-09Style: use ngx_str_null().Tatsuhiko Kubo1-2/+1
2014-07-09Style: use ngx_strlen() instead of strlen().Tatsuhiko Kubo1-1/+1
2014-07-09Version bump.Maxim Dounin1-2/+2
2014-06-26Core: removed meaningless check from ngx_palloc_block().Maxim Dounin1-7/+3
The check became meaningless after refactoring in 2a92804f4109. With the loop currently in place, "current" can't be NULL, hence the check can be dropped. Additionally, the local variable "current" was removed to simplify code, and pool->current now used directly instead. Found by Coverity (CID 714236).
2014-06-26Core: plugged socket leak during configuration test.Maxim Dounin1-6/+6
This isn't really important as configuration testing shortly ends with a process termination which will free all sockets, though Coverity complains. Prodded by Coverity (CID 400872).
2014-06-04Core: added ngx_slab_calloc() and ngx_slab_calloc_locked().Ruslan Ermilov2-0/+31
These functions return zeroed memory, analogous to ngx_pcalloc().
2014-06-18Version bump.Ruslan Ermilov1-2/+2
2014-06-03Core: slab allocator free pages defragmentation.Maxim Dounin2-1/+60
Large allocations from a slab pool result in free page blocks being fragmented, eventually leading to a situation when no further allocation larger than a page size are possible from the pool. While this isn't a problem for nginx itself, it is known to be bad for various 3rd party modules. Fix is to merge adjacent blocks of free pages in the ngx_slab_free_pages() function. Prodded by Wandenberg Peixoto and Yichun Zhang.
2014-05-28Version bump.Maxim Dounin1-2/+2
2014-05-27Syslog: fixed message sending on win32.Vladimir Homutov1-0/+4
2014-05-26Syslog: fixed possible resource leak and more verbose logging.Vladimir Homutov1-12/+22
Found by Coverity (CID 1215646).
2014-05-12Added syslog support for error_log and access_log directives.Vladimir Homutov7-16/+461
2014-05-20Configure: the --build= option.Ruslan Ermilov2-1/+7
If set, its value is output in "nginx -v" and in the error log.
2014-05-14Core: use '\r' for CR and '\n' for LF definitions.Ruslan Ermilov1-3/+3
2014-04-30Core: improved ngx_conf_parse() error handling.Maxim Dounin1-1/+1
Previous code failed to properly restore cf->conf_file in case of ngx_close_file() errors, potentially resulting in double free of cf->conf_file->buffer->start. Found by Coverity (CID 1087507).
2014-04-30Core: fixed error handling in ngx_reopen_files().Maxim Dounin1-0/+6
Found by Coverity (CID 1087509).
2014-04-24Version bump.Valentin Bartenev1-2/+2
2014-04-18Version bump.Maxim Dounin1-2/+2
2014-04-08Version bump.Valentin Bartenev1-2/+2
2014-03-31Core: fixed hash to actually try max_size.Maxim Dounin1-1/+1
Previously, maximum size of a hash table built was (max_size - 1).
2014-03-31Core: hash now ignores bucket_size if it hits max_size limit.Maxim Dounin1-8/+5
2014-03-31Core: slab log_nomem flag.Maxim Dounin2-1/+7
The flag allows to suppress "ngx_slab_alloc() failed: no memory" messages from a slab allocator, e.g., if an LRU expiration is used by a consumer and allocation failures aren't fatal. The flag is now used in the SSL session cache code, and in the limit_req module.
2014-03-18Version bump.Maxim Dounin1-2/+2
2014-03-17Added server-side support for PROXY protocol v1 (ticket #355).Roman Arutyunyan4-0/+117
Client address specified in the PROXY protocol header is now saved in the $proxy_protocol_addr variable and can be used in the realip module. This is currently not implemented for mail.