aboutsummaryrefslogtreecommitdiff
path: root/src/core/nginx.c
Commit message (Collapse)AuthorAge
* SSL: SSLeay_version() is deprecated in OpenSSL 1.1.0.Maxim Dounin2016-03-31
| | | | | | | | SSLeay_version() and SSLeay() are no longer available if OPENSSL_API_COMPAT is set to 0x10100000L. Switched to using OpenSSL_version() instead. Additionally, we now compare version strings instead of version numbers, and this correctly works for LibreSSL as well.
* Fixed logging.Sergey Kandaurov2016-03-31
|
* Fix build with -Wmissing-prototypes.Piotr Sikora2016-03-18
| | | | | | Broken in 5eb4d7541107 (1.9.6), fix somehow missed in 3600bbfb43e3. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
* Core: added support for more than 64 CPUs in worker_cpu_affinity.Vladimir Homutov2016-02-18
|
* Core: improved logging on invalid NGINX variable (ticket #900).Maxim Dounin2016-02-15
|
* Dynamic modules.Maxim Dounin2016-02-04
| | | | | | | | | | | | | | | | | | | The auto/module script is extended to understand ngx_module_link=DYNAMIC. When set, it links the module as a shared object rather than statically into nginx binary. The module can later be loaded using the "load_module" directive. New auto/module parameter ngx_module_order allows to define module loading order in complex cases. By default the order is set based on ngx_module_type. 3rd party modules can be compiled dynamically using the --add-dynamic-module configure option, which will preset ngx_module_link to "DYNAMIC" before calling the module config script. Win32 support is rudimentary, and only works when using MinGW gcc (which is able to handle exports/imports automatically). In collaboration with Ruslan Ermilov.
* Dynamic modules: moved module-related stuff to separate files.Maxim Dounin2016-02-04
|
* Core: worker_cpu_affinity auto.Maxim Dounin2016-01-11
| | | | | | | | | | | If enabled, workers are bound to available CPUs, each worker to once CPU in order. If there are more workers than available CPUs, remaining are bound in a loop, starting again from the first available CPU. The optional mask parameter defines which CPUs are available for automatic binding. In collaboration with Vladimir Homutov.
* Style: unneeded casts of cf->args->elts removed.Maxim Dounin2015-10-19
|
* Extract out version info function.Kurtis Nusbaum2015-07-12
| | | | | | | The code for displaying version info and configuration info seemed to be cluttering up the main function. I was finding it hard to read main. This extracts out all of the logic for displaying version and configuration info into its own function, thus making main easier to read.
* Core: store and dump processed configuration.Vladimir Homutov2015-05-14
| | | | | | | | If the -T option is passed, additionally to configuration test, configuration files are output to stdout. In the debug mode, configuration files are kept in memory and can be accessed using a debugger.
* Removed the "worker_rlimit_sigpending" directive.Ruslan Ermilov2015-04-23
| | | | It was only needed by the just removed rtsig module.
* Removed "worker_threads" and "thread_stack_size" directives.Ruslan Ermilov2015-03-26
|
* Fixed build, broken by 8b7f062a3fe6.Ruslan Ermilov2015-04-16
| | | | Casting a "const char *" to "char *" doesn't work on older gcc versions.
* Core: added OpenSSL version information to "nginx -V" output.Vladimir Homutov2015-04-16
|
* Renamed NGX_THREADS to NGX_OLD_THREADS because of deprecation.Ruslan Ermilov2015-03-04
| | | | It's mostly dead code and the original idea of worker threads has been rejected.
* Configure: the --build= option.Ruslan Ermilov2014-05-20
| | | | If set, its value is output in "nginx -v" and in the error log.
* Backed out f1a91825730a and 7094bd12c1ff.Maxim Dounin2013-08-20
| | | | | | | 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.
* Replaced ngx_conf_full_name() with ngx_get_full_name().Valentin Bartenev2013-08-06
| | | | The ngx_get_full_name() function takes more readable arguments list.
* Core: consolidated log-related code.Vladimir Homutov2013-06-28
| | | | | The stderr redirection code is moved to ngx_log_redirect_stderr(). The opening of the default log code is moved to ngx_log_open_default().
* Core: fixed handling of "stderr" in error_log.Vladimir Homutov2013-06-04
| | | | | | If "stderr" was specified in one of the "error_log" directives, stderr is not redirected to the first error_log on startup, configuration reload, and reopening log files.
* Use NGX_FILE_ERROR for handling file operations errors.Valentin Bartenev2013-03-25
| | | | | | | | | | | On Win32 platforms 0 is used to indicate errors in file operations, so comparing against -1 is not portable. This was not much of an issue in patched code, since only ngx_fd_info() test is actually reachable on Win32 and in worst case it might result in bogus error log entry. Patch by Piotr Sikora.
* Core: fixed resource leak if binary upgrade fails due to no memory.Ruslan Ermilov2013-03-20
| | | | Found by Coverity (CID 992320).
* Core: guard against failed allocation during binary upgrade.Ruslan Ermilov2013-03-18
| | | | Patch by Piotr Sikora.
* Core: the "auto" parameter of the "worker_processes" directive.Andrey Belov2012-10-23
| | | | | The parameter will set the number of worker processes to the autodetected number of available CPU cores.
* Fixed the -p parameter handling.Ruslan Ermilov2012-08-03
| | | | | Ensure that the path supplied always ends with a `/' except when empty. An empty value now corresponds to the current directory instead of `/'.
* Fixed grammar in error messages.Ruslan Ermilov2012-04-12
|
* worker_cpu_affinity: cleaned up Linux implementation, added FreeBSD support.Ruslan Ermilov2012-03-21
|
* Copyright updated.Maxim Konovalov2012-01-18
|
* Fixed handling of SIGWINCH/NOACCEPT signal.Maxim Dounin2011-11-15
| | | | | After first upgrade it was ignored since r4020 (1.1.1, 1.0.9) as ngx_daemonized wasn't set.
* Introduction of simple ngx_write_stderr() instead of ngx_log_stderr()Igor Sysoev2011-11-14
| | | | | for output of ./configure options, etc., since ngx_log_stderr() output length is limited by 2048 characters defined as NGX_MAX_ERROR_STR.
* malloc() debugging on MacOSX.Igor Sysoev2011-10-24
|
* FreeBSD's MALLOC_OPTIONS must be set before any malloc() call.Igor Sysoev2011-10-24
| | | | The bug has been introduced in r3799.
* move ngx_strerror_init() at the very startIgor Sysoev2010-11-29
|
* use copied strerror() messages and autoconfigured sys_nerr valueIgor Sysoev2010-11-25
|
* worker_rlimit_core should be off_tIgor Sysoev2010-09-15
|
* the -q switchIgor Sysoev2010-09-02
|
* ngx_str_set() and ngx_str_null()Igor Sysoev2010-05-14
|
* fix commentsIgor Sysoev2010-03-26
|
* fix r3331:Igor Sysoev2009-12-17
| | | | | *) now pools are aligned to 16 bytes *) forbidden to set non-aligned pool sizes
* fix r3211Igor Sysoev2009-10-26
|
* add SNI support in -V outputIgor Sysoev2009-10-19
|
* nginx did not close log file set by --error-log-path,Igor Sysoev2009-10-09
| | | | the bug was introduced in r2744
* Linux/SPARC malloc() returns an address aligned to 8. This conflicts withIgor Sysoev2009-09-30
| | | | | our SPARC 16-byte alignment and some allocations may be done out of pool. ngx_memalign(ngx_pagesize) fixes this issue.
* a signaller process should stop configuration processing just afterIgor Sysoev2009-06-06
| | | | it is able to get pid file, this allows to not open log files, etc.
* add prefix in UsageIgor Sysoev2009-04-28
|
* -p and --prefix=Igor Sysoev2009-04-27
|
* add quotes for configure options with spacesIgor Sysoev2009-04-26
|
* pass command lines options to workersIgor Sysoev2009-04-23
|
* issue start up errors and warning on both stderr and error_logIgor Sysoev2009-04-23
|