History log of /unit/src/nxt_conf.h (Results 1 – 25 of 41)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2185:2227bdbb3c89 29-Aug-2022 Valentin Bartenev

Implemented basic statistics API.


# 2147:7bf58b1b18c4 13-Jul-2022 Zhidao HONG

Var: dynamic variables support.

This commit adds the variables $arg_NAME, $header_NAME, and $cookie_NAME.


# 2139:99d792169ffb 16-Jun-2022 Andrew Clayton

Constified numerous function parameters.

As was pointed out by the cppcheck[0] static code analysis utility we
can mark numerous function parameters as 'const'. This acts as a hint to
the compiler a

Constified numerous function parameters.

As was pointed out by the cppcheck[0] static code analysis utility we
can mark numerous function parameters as 'const'. This acts as a hint to
the compiler about our intentions and the compiler will tell us when we
deviate from them.

[0]: https://cppcheck.sourceforge.io/

show more ...


Revision tags: 1.27.0-1, 1.27.0
# 2076:1be3131609fd 18-Dec-2021 Alejandro Colomar

Added new array APIs that also work with non-arrays.

Similar to how C pointers to variables can always be considered as
pointers to the first element of an array of size 1 (see the
following code fo

Added new array APIs that also work with non-arrays.

Similar to how C pointers to variables can always be considered as
pointers to the first element of an array of size 1 (see the
following code for an example of how they are equivalent),
treating non-NXT_CONF_VALUE_ARRAY as if they were
NXT_CONF_VALUE_ARRAYs of size 1 allows for simpler and more
generic code.

void foo(ptrdiff_t sz, int arr[sz])
{
for (ptrdiff_t i = 0; i < sz; i++)
arr[i] = 0;
}

void bar(void)
{
int x;
int y[1];

foo(1, &x);
foo(1, y);
}

nxt_conf_array_elements_count_or_1():
Similar to nxt_conf_array_elements_count().
Return a size of 1 when input is non-array, instead of
causing undefined behavior. That value (1) makes sense
because it will be used as the limiter of a loop that
loops over the array and calls
nxt_conf_get_array_element_or_itself(), which will return
a correct element for such loops.

nxt_conf_get_array_element_or_itself():
Similar to nxt_conf_get_array_element().
Return the input pointer unmodified (i.e., a pointer to
the unique element of a hypothetical array), instead of
returning NULL, which wasn't very useful.

nxt_conf_array_qsort():
Since it's a no-op for non-arrays, this API can be reused.

show more ...


# 2075:ee1dcaaee932 19-Dec-2021 Alejandro Colomar

Added 'const' for read-only function parameter.

That parameter is not being modified in the function. Make it
'const' to allow passing 'static const' variables.


Revision tags: 1.26.1-1, 1.26.1, 1.26.0-1, 1.26.0
# 1969:be6409cdb028 09-Oct-2021 Zhidao HONG

Configuration: automatic migration to the new "share" behavior.


Revision tags: 1.25.0-1, 1.25.0, 1.24.0-1, 1.24.0, 1.23.0-1, 1.23.0, 1.22.0-1, 1.22.0, 1.21.0-1, 1.21.0, 1.20.0-1, 1.20.0, 1.19.0-1, 1.19.0, 1.18.0-1, 1.18.0
# 1473:e07d5b451423 14-May-2020 Valentin Bartenev

PHP: implemented "targets" option.

This allows to specify multiple subsequent targets inside PHP applications.
For example:

{
"listeners": {
"*:80": {
"pass": "route

PHP: implemented "targets" option.

This allows to specify multiple subsequent targets inside PHP applications.
For example:

{
"listeners": {
"*:80": {
"pass": "routes"
}
},

"routes": [
{
"match": {
"uri": "/info"
},

"action": {
"pass": "applications/my_app/phpinfo"
}
},
{
"match": {
"uri": "/hello"
},

"action": {
"pass": "applications/my_app/hello"
}
},
{
"action": {
"pass": "applications/my_app/rest"
}
}
],

"applications": {
"my_app": {
"type": "php",
"targets": {
"phpinfo": {
"script": "phpinfo.php",
"root": "/www/data/admin",
},

"hello": {
"script": "hello.php",
"root": "/www/data/test",
},

"rest": {
"root": "/www/data/example.com",
"index": "index.php"
},
}
}
}
}

show more ...


Revision tags: 1.17.0-1, 1.17.0
# 1439:32578e837322 30-Mar-2020 Valentin Bartenev

Configuration: support for rational numbers.


Revision tags: 1.16.0-1, 1.16.0, 1.15.0-1, 1.15.0, 1.14.0-1, 1.14.0, 1.13.0-1, 1.13.0
# 1236:46331b9ef11a 11-Oct-2019 Tiago Natel

Fixed passing false in namespace flags.

This patch closes #328 in github.


Revision tags: 1.12.0-1, 1.12.0, 1.11.0-2, 1.11.0-1, 1.11.0
# 1183:6008abf06746 18-Sep-2019 Valentin Bartenev

Basic support for serving static files.


Revision tags: 1.10.0-2, 1.10.0-1, 1.10.0, 1.9.0-1, 1.9.0
# 1049:961567625038 24-Apr-2019 Valentin Bartenev

Configuration: support for POST operations on arrays.

It allows to add an array element without specifying the index.


Revision tags: 1.8.0-1, 1.8.0
# 977:4f9268f27b57 28-Feb-2019 Max Romanov

Introducing Java Servlet Container beta.


# 962:441ac71b793a 26-Feb-2019 Igor Sysoev

Introduced nxt_conf_array_qsort().


# 961:94b4c5bb66e3 26-Feb-2019 Igor Sysoev

Introduced nxt_conf_array_elements_count().


Revision tags: 1.7.1-1, 1.7.1, 1.7-1, 1.7, 1.6-1, 1.6, 1.5-1, 1.5, 1.4-2, 1.4
# 774:b21709350c49 20-Sep-2018 Valentin Bartenev

Controller: certificates storage interface.


# 773:ff0e7d712ef3 20-Sep-2018 Valentin Bartenev

Deduplicated string value initializations.


Revision tags: 1.3, 1.2
# 686:520ee313b36c 07-Jun-2018 Valentin Bartenev

Exported functions for accessing configuration values.


Revision tags: 1.1, 1.0, 0.7, 0.6, 0.5
# 507:fa714d76592b 29-Jan-2018 Max Romanov

Introducing extended app process management.

- Pre-fork 'processes.spare' application processes;
- fork more processes to keep 'processes.spare' idle processes;
- fork on-demand up to 'processes.max

Introducing extended app process management.

- Pre-fork 'processes.spare' application processes;
- fork more processes to keep 'processes.spare' idle processes;
- fork on-demand up to 'processes.max' count;
- scale down idle application processes above 'processes.spare' after
'processes.idle_timeout';
- number of concurrently started application processes also limited by
'processes.spare' (or 1, if spare is 0).

show more ...


Revision tags: 0.4, 0.3, 0.2
# 357:b80698152fcd 10-Oct-2017 Valentin Bartenev

Basic validation errors.


Revision tags: 0.1
# 214:3dda93d5b3cf 16-Aug-2017 Valentin Bartenev

Introduced nxt_conf_get_array_element().


# 213:df7c06c7f26d 16-Aug-2017 Valentin Bartenev

Object mapping interface extended with more string types.


# 208:7d1017bd0f6c 11-Aug-2017 Valentin Bartenev

Controller: more HTTP headers and detailed JSON parsing errors.


# 172:72c5b69c7145 18-Jul-2017 Valentin Bartenev

Configuration: reduced memory consumption of long strings.


# 136:98eee55fda19 10-Jul-2017 Valentin Bartenev

Configuration: nxt_conf_map_object() improvements.


# 121:18f69a84a231 06-Jul-2017 Valentin Bartenev

Controller: sending JSON configuration to router.


12