Home
last modified time | relevance | path

Searched hist:16 (Results 76 – 100 of 377) sorted by relevance

12345678910>>...16

/unit/src/
H A Dnxt_job_cache_file.cdiff 65:10688b89aa16 Tue Jun 20 16:49:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Using new memory pool implementation.
H A Dnxt_websocket.cdiff 1235:4d5998f60f20 Thu Oct 10 16:42:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Style fixes.
H A Dnxt_port_memory.cdiff 1976:3997c4645142 Tue Oct 26 16:31:00 UTC 2021 Valentin Bartenev <vbart@nginx.com> Fixed a potential descriptor leak if mmap() failed.
diff 1811:cac57293c5c5 Tue Mar 02 16:33:00 UTC 2021 Max Romanov <max.romanov@nginx.com> Closing app outgoing shared memory file descriptor.

This fixes file descriptor leakage in router. Shared memory file used to
send data from router to application. These files are shared among all
processes of same application and router keeps the opened file descriptor since
06017e6e3a5f commit.
diff 1546:06017e6e3a5f Tue Aug 11 16:20:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Changing router to application shared memory exchange protocol.

The application process needs to request the shared memory segment from the
router instead of the latter pushing the segment before sending a request to
the application. This is required to simplify the communication between the
router and the application and to prepare the router for using the application
shared port and then the queue.
diff 1488:6976d36be926 Mon Mar 09 16:28:00 UTC 2020 Tiago Natel de Moura <t.nateldemoura@f5.com> Refactor of process management.

The process abstraction has changed to:

setup(task, process)
start(task, process_data)
prefork(task, process, mp)

The prefork() occurs in the main process right before fork.

The file src/nxt_main_process.c is completely free of process
specific logic.

The creation of a process now supports a PROCESS_CREATED state. The
The setup() function of each process can set its state to either
created or ready. If created, a MSG_PROCESS_CREATED is sent to main
process, where external setup can be done (required for rootfs under
container).

The core processes (discovery, controller and router) doesn't need
external setup, then they all proceeds to their start() function
straight away.

In the case of applications, the load of the module happens at the
process setup() time and The module's init() function has changed
to be the start() of the process.

The module API has changed to:

setup(task, process, conf)
start(task, data)

As a direct benefit of the PROCESS_CREATED message, the clone(2) of
processes using pid namespaces now doesn't need to create a pipe
to make the child block until parent setup uid/gid mappings nor it
needs to receive the child pid.
diff 699:4712cdf25154 Wed Jun 20 16:11:00 UTC 2018 Max Romanov <max.romanov@nginx.com> Fixed allocation of multiple shared memory chunks.

Previously, one shared memory chunk was allocated under mutex and other
chunks (if required) were allocated using atomic operations. So such
allocation is not guaranteed and the result buffer can be less than
requested.

This commit moves multiple chunks allocation under mutex and guarantees
the result buffer is large enough.
diff 551:220b0834790b Tue Feb 20 16:00:00 UTC 2018 Max Romanov <max.romanov@nginx.com> Removed unwanted assertions.
diff 538:2d66e6b0e50f Fri Feb 09 16:07:00 UTC 2018 Valentin Bartenev <vbart@nginx.com> Made nxt_assert() statements to be compiled only with debug.
diff 494:7c83ddcc1c42 Wed Jan 24 12:16:00 UTC 2018 Sergey Kandaurov <pluknet@nginx.com> Fixed formatting in nxt_sprintf() and logging.
diff 90:f9462c69c19e Fri Jun 23 16:20:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Incoming and outgoing port_mmap arrays are protected with mutexes.
diff 82:4be7aabeb2d1 Fri Jun 23 16:20:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Moved message size to nxt_port_recv_msg_t for convenience.
H A Dnxt_main_process.hdiff 1488:6976d36be926 Mon Mar 09 16:28:00 UTC 2020 Tiago Natel de Moura <t.nateldemoura@f5.com> Refactor of process management.

The process abstraction has changed to:

setup(task, process)
start(task, process_data)
prefork(task, process, mp)

The prefork() occurs in the main process right before fork.

The file src/nxt_main_process.c is completely free of process
specific logic.

The creation of a process now supports a PROCESS_CREATED state. The
The setup() function of each process can set its state to either
created or ready. If created, a MSG_PROCESS_CREATED is sent to main
process, where external setup can be done (required for rootfs under
container).

The core processes (discovery, controller and router) doesn't need
external setup, then they all proceeds to their start() function
straight away.

In the case of applications, the load of the module happens at the
process setup() time and The module's init() function has changed
to be the start() of the process.

The module API has changed to:

setup(task, process, conf)
start(task, data)

As a direct benefit of the PROCESS_CREATED message, the clone(2) of
processes using pid namespaces now doesn't need to create a pipe
to make the child block until parent setup uid/gid mappings nor it
needs to receive the child pid.
diff 1302:d4c6a91f7091 Tue Nov 26 16:26:00 UTC 2019 Tiago Natel <t.nateldemoura@f5.com> Refactor of process init.

Introduces the functions nxt_process_init_create() and
nxt_process_init_creds_set().
diff 754:c8e0f350f0d4 Fri Aug 10 16:27:00 UTC 2018 Max Romanov <max.romanov@nginx.com> Stopping all application processes if router process dies.

Unit master process restarts the router if the router accidentally dies.
New router process receives the configuration from controller and starts
configured applications. The information of running applications cannot
be transferred to router because currently there is no persistent application
identifier. To avoid orphan application processes started by died router,
master process stops all currently running applications once it receives
SIGCHLD for router process.
H A Dnxt_conf.cdiff 2139:99d792169ffb Thu Jun 16 01:00:00 UTC 2022 Andrew Clayton <andrew@digital-domain.net> 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/
diff 1439:32578e837322 Mon Mar 30 16:37:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Configuration: support for rational numbers.
diff 1425:e3cf8d512e53 Wed Mar 25 16:14:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Configuration: fixed comments parsing.

Unclosed multi-line comments and "/" at the end of JSON shouldn't be allowed.
diff 1167:a49ee872e83d Mon Sep 16 17:17:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Configuration: added ability to access object members with slashes.

Now URI encoding can be used to escape "/" in the request path:

GET /config/listeners/unix:%2Fpath%2Fto%2Fsocket/
diff 962:441ac71b793a Tue Feb 26 16:48:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Introduced nxt_conf_array_qsort().
diff 961:94b4c5bb66e3 Tue Feb 26 16:48:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Introduced nxt_conf_array_elements_count().
diff 214:3dda93d5b3cf Wed Aug 16 12:45:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Introduced nxt_conf_get_array_element().
diff 213:df7c06c7f26d Wed Aug 16 12:45:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Object mapping interface extended with more string types.
diff 208:7d1017bd0f6c Fri Aug 11 16:54:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Controller: more HTTP headers and detailed JSON parsing errors.
diff 207:1145c84e08ac Fri Aug 11 15:13:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Fixed parsing of JSON encoded UTF-16 surrogate pairs.
H A Dnxt_gnutls.cdiff 2078:0996dd223cdd Sat Dec 18 23:58:00 UTC 2021 Alejandro Colomar <alx.manpages@gmail.com> Fixed indentation.

Some lines (incorrectly) had an indentation of 3 or 5, or 7 or 9,
or 11 or 13, or 15 or 17 spaces instead of 4, 8, 12, or 16. Fix them.

Found with:

$ find src -type f | xargs grep -n '^ [^ ]';
$ find src -type f | xargs grep -n '^ [^ *]';
$ find src -type f | xargs grep -n '^ [^ ]';
$ find src -type f | xargs grep -n '^ [^ *]';
$ find src -type f | xargs grep -n '^ [^ +]';
$ find src -type f | xargs grep -n '^ [^ *+]';
$ find src -type f | xargs grep -n '^ [^ +]';
$ find src -type f | xargs grep -n '^ [^ *+]';
diff 65:10688b89aa16 Tue Jun 20 16:49:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Using new memory pool implementation.
H A Dnxt_lib.cdiff 1306:3604d05e48be Fri Dec 06 16:52:00 UTC 2019 Tiago Natel <t.nateldemoura@f5.com> Isolation: allowed the use of credentials with unpriv userns.

The setuid/setgid syscalls requires root capabilities but if the kernel
supports unprivileged user namespace then the child process has the full
set of capabilities in the new namespace, then we can allow setting "user"
and "group" in such cases (this is a common security use case).

Tests were added to ensure user gets meaningful error messages for
uid/gid mapping misconfigurations.
diff 1:fdc027c56872 Mon Jan 23 16:56:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Introducing tasks.
H A Dnxt_js.cdiff 2345:5c9cb7e205d3 Mon Jan 30 03:16:00 UTC 2023 Zhidao HONG <z.hong@f5.com> NJS: adding the missing vm destruction.

This commit fixed the njs memory leak happened in the config validation, updating and http requests.
diff 2318:6f198d76ee62 Mon Jan 30 03:16:00 UTC 2023 Zhidao HONG <z.hong@f5.com> NJS: adding the missing vm destruction.

This commit fixed the njs memory leak happened in the config validation, updating and http requests.
2247:baa6b9879267 Sun Nov 20 15:16:00 UTC 2022 Zhidao HONG <z.hong@f5.com> Basic njs support.
H A Dnxt_thread_pool.hdiff 1:fdc027c56872 Mon Jan 23 16:56:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Introducing tasks.
/unit/test/python/custom_header/
H A Dwsgi.py578:855142942347 Fri Mar 16 14:45:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Tests: HTTP header field and value tests.
/unit/test/php/variables/
H A Dindex.phpdiff 1092:f148d4caca98 Mon Jul 08 16:23:00 UTC 2019 Andrey Zelenkov <zelenkov@nginx.com> Tests: added PATH_INFO variable test.
/unit/test/php/opcache/
H A Dindex.phpdiff 2054:357dee5c1861 Sat Dec 11 00:16:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: added more OPcache tests.
/unit/pkg/rpm/
H A DMakefile.python3112254:161c47a9b4f0 Wed Nov 16 13:06:00 UTC 2022 Konstantin Pavlov <thresh@nginx.com> Packages: added Fedora 37 support.
/unit/test/php/ini_precision/
H A Dindex.phpdiff 721:bcda74754da9 Wed Jul 11 16:35:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Tests: more php.ini options tests.
/unit/tools/
H A DREADME.mddiff 2575:27e184a2ad23 Mon Oct 16 09:32:00 UTC 2023 Liam Crilly <liam.crilly@nginx.com> Tools: unitc Docker mode.

Introduces a new remote host scheme docker:// that specifies a local
container ID. By default, the control socket is assumed to be in the default
location, as per the Docker Official Images for Unit. If not, the path to
the control socket can be appended to the container ID.
diff 2274:6707ef36647c Wed Dec 14 16:20:00 UTC 2022 Liam Crilly <liam.crilly@nginx.com> Tools: Added unitc.
/unit/src/java/nginx/unit/websocket/server/
H A DWsSessionListener.javadiff 2617:18a10bb7346d Tue Jan 16 15:37:00 UTC 2024 Andrei Zeliankou <zelenkov@nginx.com> White space formatting fixes

Closes: <https://github.com/nginx/unit/pull/1062>
/unit/src/java/nginx/unit/websocket/
H A DUtil.javadiff 2617:18a10bb7346d Tue Jan 16 15:37:00 UTC 2024 Andrei Zeliankou <zelenkov@nginx.com> White space formatting fixes

Closes: <https://github.com/nginx/unit/pull/1062>
/unit/test/
H A Dtest_procman.py2695:4c9ad19be663 Wed Feb 07 16:29:00 UTC 2024 Andrei Zeliankou <zelenkov@nginx.com> Tests: renamed test_python_procman.py since it's not Python-specific

Python applications are used only to generate responses here and can be
replaced by applications written in any other language. While the
"_python" prefix is used to indicate that the file contains tests
specific to the Python module.
H A Dtest_perl_application.pydiff 2488:55440e02a873 Mon Jun 12 13:16:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: prerequisites checking reworked.

Prerequisites check moved to the module level to simplify class structure.
Discovery and prerequisites checks functions moved to the separate files.
Introduced "require" fixture to provide per-test requirements check.
diff 1596:b7e2d4d92624 Wed Sep 16 20:31:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: migrated to the pytest.
diff 970:2f4376c8f358 Wed Feb 27 16:15:00 UTC 2019 Andrey Zelenkov <zelenkov@nginx.com> Tests: added "Host" and "Connetion" headers where necessary.

Also minor header organizing.
diff 916:a7034804fe9c Mon Jan 28 14:16:00 UTC 2019 Andrey Zelenkov <zelenkov@nginx.com> Tests: added test for reading body from IO::Handle-like object.
diff 607:ced9f2afd5a5 Mon Apr 02 16:20:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Tests: Perl script with syntax error.
diff 581:b505e4d4f864 Mon Mar 19 16:03:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Tests: more Perl tests.
diff 554:a646a4bc618b Mon Feb 26 16:53:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Tests: more perl tests.
544:c4bbb14c5bdb Mon Feb 12 16:32:00 UTC 2018 Andrey Zelenkov <zelenkov@nginx.com> Tests: perl module.
H A Dtest_respawn.pydiff 2488:55440e02a873 Mon Jun 12 13:16:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: prerequisites checking reworked.

Prerequisites check moved to the module level to simplify class structure.
Discovery and prerequisites checks functions moved to the separate files.
Introduced "require" fixture to provide per-test requirements check.
diff 1730:44912af5b3e6 Sun Dec 06 16:01:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: options moved to the separate class.

This change is necessary to separate the logic
and prevent possible circular dependency.
diff 1596:b7e2d4d92624 Wed Sep 16 20:31:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: migrated to the pytest.
1471:38ede0766e1a Tue May 12 16:59:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: added respawn tests.
H A Dtest_python_isolation_chroot.pydiff 2488:55440e02a873 Mon Jun 12 13:16:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: prerequisites checking reworked.

Prerequisites check moved to the module level to simplify class structure.
Discovery and prerequisites checks functions moved to the separate files.
Introduced "require" fixture to provide per-test requirements check.
diff 1740:53149d20bb97 Wed Dec 09 16:15:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: isolation check moved to the pytest_sessionstart().

This change eliminates the need for some classes
to run Unit one more time before running tests.
diff 1596:b7e2d4d92624 Wed Sep 16 20:31:00 UTC 2020 Andrei Zeliankou <zelenkov@nginx.com> Tests: migrated to the pytest.
/unit/src/nodejs/unit-http/
H A Dwebsocket_request.jsdiff 2617:18a10bb7346d Tue Jan 16 15:37:00 UTC 2024 Andrei Zeliankou <zelenkov@nginx.com> White space formatting fixes

Closes: <https://github.com/nginx/unit/pull/1062>
H A Dwebsocket_connection.jsdiff 2617:18a10bb7346d Tue Jan 16 15:37:00 UTC 2024 Andrei Zeliankou <zelenkov@nginx.com> White space formatting fixes

Closes: <https://github.com/nginx/unit/pull/1062>
/unit/
H A D.rustfmt.toml2680:c3e2b1b74fd1 Tue Feb 06 16:19:00 UTC 2024 Andrew Clayton <a.clayton@nginx.com> Add a .rustfmt.toml file

This is used by the rustfmt program to format Rust code according to the
rules contained in this file.

Currently we just set the line width limit to 80 characters to match our
C code.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
H A DCONTRIBUTING.md2095:8c0978d786bd Fri May 13 16:13:00 UTC 2022 Artem Konev <artem.konev@nginx.com> Adding GitHub-styled README and CONTRIBUTING files in Markdown.

12345678910>>...16