Home
last modified time | relevance | path

Searched hist:26 (Results 201 – 225 of 249) sorted by relevance

12345678910

/unit/src/
H A Dnxt_conn.hdiff 93:8c66fdbc526b Mon Jun 26 16:58:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Build on Solaris 11 fixed.
H A Dnxt_http_static.cdiff 2381:a68b5f5bf46c Thu Jan 26 14:07:00 UTC 2023 Alejandro Colomar <alx@nginx.com> HTTP: added route logging.

- Configuration: added "/config/settings/http/log_route".

Type: bool
Default: false

This adds configurability to the error log. It allows enabling and
disabling logs related to how the router performs selection of the
routes.

- HTTP: logging request line.

Log level: [notice]

The request line is essential to understand which logs correspond to
which request when reading the logs.

- HTTP: logging route that's been discarded.

Log level: [info]

- HTTP: logging route whose action is selected.

Log level: [notice]

- HTTP: logging when "fallback" action is taken.

Log level: [notice]

Closes: <https://github.com/nginx/unit/issues/758>
Link: <https://github.com/nginx/unit/pull/824>
Link: <https://github.com/nginx/unit/pull/839>
Suggested-by: Timo Stark <t.stark@nginx.com>
Suggested-by: Mark L Wood-Patrick <mwoodpatrick@gmail.com>
Suggested-by: Liam Crilly <liam@nginx.com>
Tested-by: Liam Crilly <liam@nginx.com>
Acked-by: Artem Konev <a.konev@f5.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Cc: Andrei Zeliankou <zelenkov@nginx.com>
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 1883:b075f32408a1 Wed May 26 16:48:00 UTC 2021 Oisin Canty <o.canty@f5.com> Static: handled unknown MIME types when MIME-filtering active.
diff 1882:65e7dcdd7be4 Wed May 26 16:48:00 UTC 2021 Oisin Canty <o.canty@f5.com> MIME: added PHP.
H A Dnxt_h1proto.cdiff 2381:a68b5f5bf46c Thu Jan 26 14:07:00 UTC 2023 Alejandro Colomar <alx@nginx.com> HTTP: added route logging.

- Configuration: added "/config/settings/http/log_route".

Type: bool
Default: false

This adds configurability to the error log. It allows enabling and
disabling logs related to how the router performs selection of the
routes.

- HTTP: logging request line.

Log level: [notice]

The request line is essential to understand which logs correspond to
which request when reading the logs.

- HTTP: logging route that's been discarded.

Log level: [info]

- HTTP: logging route whose action is selected.

Log level: [notice]

- HTTP: logging when "fallback" action is taken.

Log level: [notice]

Closes: <https://github.com/nginx/unit/issues/758>
Link: <https://github.com/nginx/unit/pull/824>
Link: <https://github.com/nginx/unit/pull/839>
Suggested-by: Timo Stark <t.stark@nginx.com>
Suggested-by: Mark L Wood-Patrick <mwoodpatrick@gmail.com>
Suggested-by: Liam Crilly <liam@nginx.com>
Tested-by: Liam Crilly <liam@nginx.com>
Acked-by: Artem Konev <a.konev@f5.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Cc: Andrei Zeliankou <zelenkov@nginx.com>
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 1884:4645a43bc248 Wed May 26 18:11:00 UTC 2021 Andrey Suvorov <a.suvorov@f5.com> Fixing crash during TLS connection shutdown.

A crash was caused by an incorrect timer handler nxt_h1p_idle_timeout() if
SSL_shutdown() returned SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE.

The flag SSL_RECEIVED_SHUTDOWN is used to avoid getting SSL_ERROR_WANT_READ, so
the server won't wait for a close notification from a client.

For SSL_ERROR_WANT_WRITE, a correct timer handler is set up.
diff 1148:f93deb2432da Mon Aug 26 15:29:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Adding body handler to nxt_http_request_header_send().
diff 960:0ab58e27d00e Tue Feb 26 16:12:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Keepalive mode is disabled on HTTP header parsing errors.
H A Dnxt_http.hdiff 2381:a68b5f5bf46c Thu Jan 26 14:07:00 UTC 2023 Alejandro Colomar <alx@nginx.com> HTTP: added route logging.

- Configuration: added "/config/settings/http/log_route".

Type: bool
Default: false

This adds configurability to the error log. It allows enabling and
disabling logs related to how the router performs selection of the
routes.

- HTTP: logging request line.

Log level: [notice]

The request line is essential to understand which logs correspond to
which request when reading the logs.

- HTTP: logging route that's been discarded.

Log level: [info]

- HTTP: logging route whose action is selected.

Log level: [notice]

- HTTP: logging when "fallback" action is taken.

Log level: [notice]

Closes: <https://github.com/nginx/unit/issues/758>
Link: <https://github.com/nginx/unit/pull/824>
Link: <https://github.com/nginx/unit/pull/839>
Suggested-by: Timo Stark <t.stark@nginx.com>
Suggested-by: Mark L Wood-Patrick <mwoodpatrick@gmail.com>
Suggested-by: Liam Crilly <liam@nginx.com>
Tested-by: Liam Crilly <liam@nginx.com>
Acked-by: Artem Konev <a.konev@f5.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Cc: Andrei Zeliankou <zelenkov@nginx.com>
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 1924:96d090de7534 Mon Jul 26 07:00:00 UTC 2021 Zhidao HONG <z.hong@f5.com> Router: renamed nxt_http_proxy_create() as nxt_http_proxy_init().

No functional changes.
diff 1148:f93deb2432da Mon Aug 26 15:29:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Adding body handler to nxt_http_request_header_send().
diff 1007:7435036ed31e Wed Mar 06 12:26:00 UTC 2019 Alexander Borisov <alexander.borisov@nginx.com> Removed unnecessary abstraction layer.
H A Dnxt_router.cdiff 2381:a68b5f5bf46c Thu Jan 26 14:07:00 UTC 2023 Alejandro Colomar <alx@nginx.com> HTTP: added route logging.

- Configuration: added "/config/settings/http/log_route".

Type: bool
Default: false

This adds configurability to the error log. It allows enabling and
disabling logs related to how the router performs selection of the
routes.

- HTTP: logging request line.

Log level: [notice]

The request line is essential to understand which logs correspond to
which request when reading the logs.

- HTTP: logging route that's been discarded.

Log level: [info]

- HTTP: logging route whose action is selected.

Log level: [notice]

- HTTP: logging when "fallback" action is taken.

Log level: [notice]

Closes: <https://github.com/nginx/unit/issues/758>
Link: <https://github.com/nginx/unit/pull/824>
Link: <https://github.com/nginx/unit/pull/839>
Suggested-by: Timo Stark <t.stark@nginx.com>
Suggested-by: Mark L Wood-Patrick <mwoodpatrick@gmail.com>
Suggested-by: Liam Crilly <liam@nginx.com>
Tested-by: Liam Crilly <liam@nginx.com>
Acked-by: Artem Konev <a.konev@f5.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Cc: Andrei Zeliankou <zelenkov@nginx.com>
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 2208:26af8eadc943 Thu Sep 29 19:59:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Renamed a couple of members of nxt_unit_request_t.

This is a preparatory patch that renames the 'local' and 'local_length'
members of the nxt_unit_request_t structure to 'local_addr' and
'local_addr_length' in preparation for the adding of 'local_port' and
'local_port_length' members.

Suggested-by: Zhidao HONG <z.hong@f5.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 1885:09b857a2cca9 Wed May 26 18:19:00 UTC 2021 Andrey Suvorov <a.suvorov@f5.com> Enabling SSL_CTX configuration by using SSL_CONF_cmd().

To perform various configuration operations on SSL_CTX, OpenSSL provides
SSL_CONF_cmd(). Specifically, to configure ciphers for a listener,
"CipherString" and "Ciphersuites" file commands are used:
https://www.openssl.org/docs/man1.1.1/man3/SSL_CONF_cmd.html


This feature can be configured in the "tls/conf_commands" section.
diff 1884:4645a43bc248 Wed May 26 18:11:00 UTC 2021 Andrey Suvorov <a.suvorov@f5.com> Fixing crash during TLS connection shutdown.

A crash was caused by an incorrect timer handler nxt_h1p_idle_timeout() if
SSL_shutdown() returned SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE.

The flag SSL_RECEIVED_SHUTDOWN is used to avoid getting SSL_ERROR_WANT_READ, so
the server won't wait for a close notification from a client.

For SSL_ERROR_WANT_WRITE, a correct timer handler is set up.
diff 1542:4575201afdc0 Sun Aug 09 07:26:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Fixing leaked configuration objects.

If there are no listen sockets, the router configuration usage counter
remains 0 and never decreases. The only moment to release a configuration is
right after a configuration update.
diff 1294:61e9f23a566d Tue Nov 26 14:14:00 UTC 2019 Max Romanov <max.romanov@nginx.com> Refactoring reference counting of req_app_link.

The reason for the change is that the req_app_link reference count
was incorrect if the application crashed at start; in this case,
the nxt_request_app_link_update_peer() function was never called.

This closes #332 issue on GitHub.
diff 1148:f93deb2432da Mon Aug 26 15:29:00 UTC 2019 Igor Sysoev <igor@sysoev.ru> Adding body handler to nxt_http_request_header_send().
diff 1007:7435036ed31e Wed Mar 06 12:26:00 UTC 2019 Alexander Borisov <alexander.borisov@nginx.com> Removed unnecessary abstraction layer.
diff 662:053984ce0c4e Thu Apr 26 13:44:00 UTC 2018 Max Romanov <max.romanov@nginx.com> Controller waits READY message from router.

This required to avoid racing condition when controller receive router
port before router receives controller port.
diff 229:dbceed548653 Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Introduced nxt_socket_defer_accept().
H A Dnxt_controller.cdiff 662:053984ce0c4e Thu Apr 26 13:44:00 UTC 2018 Max Romanov <max.romanov@nginx.com> Controller waits READY message from router.

This required to avoid racing condition when controller receive router
port before router receives controller port.
diff 234:e0f17b03f52b Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --control.
diff 49:0069b2499ced Fri May 26 17:30:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Style and a trivial fix.
H A Dnxt_router.hdiff 2381:a68b5f5bf46c Thu Jan 26 14:07:00 UTC 2023 Alejandro Colomar <alx@nginx.com> HTTP: added route logging.

- Configuration: added "/config/settings/http/log_route".

Type: bool
Default: false

This adds configurability to the error log. It allows enabling and
disabling logs related to how the router performs selection of the
routes.

- HTTP: logging request line.

Log level: [notice]

The request line is essential to understand which logs correspond to
which request when reading the logs.

- HTTP: logging route that's been discarded.

Log level: [info]

- HTTP: logging route whose action is selected.

Log level: [notice]

- HTTP: logging when "fallback" action is taken.

Log level: [notice]

Closes: <https://github.com/nginx/unit/issues/758>
Link: <https://github.com/nginx/unit/pull/824>
Link: <https://github.com/nginx/unit/pull/839>
Suggested-by: Timo Stark <t.stark@nginx.com>
Suggested-by: Mark L Wood-Patrick <mwoodpatrick@gmail.com>
Suggested-by: Liam Crilly <liam@nginx.com>
Tested-by: Liam Crilly <liam@nginx.com>
Acked-by: Artem Konev <a.konev@f5.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Cc: Andrei Zeliankou <zelenkov@nginx.com>
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 1007:7435036ed31e Wed Mar 06 12:26:00 UTC 2019 Alexander Borisov <alexander.borisov@nginx.com> Removed unnecessary abstraction layer.
53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_application.cdiff 1007:7435036ed31e Wed Mar 06 12:26:00 UTC 2019 Alexander Borisov <alexander.borisov@nginx.com> Removed unnecessary abstraction layer.
diff 233:60bb2517a61d Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --modules.
diff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
H A Dnxt_process.hdiff 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 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().
/unit/test/
H A Dtest_asgi_websockets.pydiff 2477:4633c7db7fb5 Thu May 25 13:26:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: removed unused variables.
H A Dtest_node_websockets.pydiff 2477:4633c7db7fb5 Thu May 25 13:26:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: removed unused variables.
H A Dtest_proxy.pydiff 2477:4633c7db7fb5 Thu May 25 13:26:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: removed unused variables.
/unit/tools/
H A Dunitcdiff 2579:9c2fd2342ecb Wed Oct 18 21:26:00 UTC 2023 Liam Crilly <liam.crilly@nginx.com> Tools: unitc remote mode edit fix.

Previously, the edit method created a temporary file that was then sent
to curl(1) as --data-binary @filename.tmp. This did not work with
remote instances because the temporary file is not on the remote host.
The edit method now passes the configuration to curl(1) using stdin, the
same way as for all other configuration changes.
/unit/auto/modules/
H A Dconfdiff 235:467cff8f6def Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --help.
H A Dpythondiff 1655:72319d055889 Mon Oct 26 19:24:00 UTC 2020 Valentin Bartenev <vbart@nginx.com> Configure: using comma instead of space for passing -rpath value.

This variant will be more interoperable across various systems
and it's already used in Ruby module.

Otherwise, configure tests fail on NetBSD with:

gcc: Missing argument for -Wl,-rpath
diff 235:467cff8f6def Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --help.
H A Dgodiff 235:467cff8f6def Sat Aug 26 10:37:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Added configure and command line option --help.
/unit/docs/
H A Dchanges.xmldiff 2766:e1697591d345 Tue Mar 26 13:57:00 UTC 2024 oxpa <iippolitov@gmail.com> Merge tag '1.32.1' into packaging

Unit 1.32.1 release.
diff 2674:c055d68bbf43 Fri Jan 26 14:58:00 UTC 2024 Andrei Zeliankou <zelenkov@nginx.com> Python: bytearray body support for ASGI module.

@filiphanes requested support for bytearray
and memoryview in the request body here:
<https://github.com/nginx/unit/issues/648>

This patch implements bytearray body support only.
Memoryview body still need to be implemented.
diff 2588:a7cd214faa6e Thu Oct 26 13:26:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Version bump.
diff 2588:a7cd214faa6e Thu Oct 26 13:26:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Version bump.
diff 2381:a68b5f5bf46c Thu Jan 26 14:07:00 UTC 2023 Alejandro Colomar <alx@nginx.com> HTTP: added route logging.

- Configuration: added "/config/settings/http/log_route".

Type: bool
Default: false

This adds configurability to the error log. It allows enabling and
disabling logs related to how the router performs selection of the
routes.

- HTTP: logging request line.

Log level: [notice]

The request line is essential to understand which logs correspond to
which request when reading the logs.

- HTTP: logging route that's been discarded.

Log level: [info]

- HTTP: logging route whose action is selected.

Log level: [notice]

- HTTP: logging when "fallback" action is taken.

Log level: [notice]

Closes: <https://github.com/nginx/unit/issues/758>
Link: <https://github.com/nginx/unit/pull/824>
Link: <https://github.com/nginx/unit/pull/839>
Suggested-by: Timo Stark <t.stark@nginx.com>
Suggested-by: Mark L Wood-Patrick <mwoodpatrick@gmail.com>
Suggested-by: Liam Crilly <liam@nginx.com>
Tested-by: Liam Crilly <liam@nginx.com>
Acked-by: Artem Konev <a.konev@f5.com>
Cc: Andrew Clayton <a.clayton@nginx.com>
Cc: Andrei Zeliankou <zelenkov@nginx.com>
Reviewed-by: Zhidao Hong <z.hong@f5.com>
Signed-off-by: Alejandro Colomar <alx@nginx.com>
diff 2162:fd2a3c0ad344 Tue Jul 26 14:58:00 UTC 2022 Alejandro Colomar <alx.manpages@gmail.com> Fixed line removed by accident.

When fixing conflicts in the changelog, a line was removed by accident.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
diff 2110:048281cd3d73 Thu May 26 12:38:00 UTC 2022 Alejandro Colomar <alx.manpages@gmail.com> Var: Added $request_uri (as in NGINX).

This supports a new variable $request_uri that contains the path
and the query (See RFC 3986, section 3). Its contents are percent
encoded. This is useful for example to redirect HTTP to HTTPS:

{
"return": "301",
"location": "https://$host$request_uri"
}

When <http://example.com/foo%23bar?baz> is requested, the server
redirects to <https://example.com/foo%23bar?baz>.

===

Testing:

//diff --git a/src/nxt_http_return.c b/src/nxt_http_return.c
//index 82c9156..adeb3a1 100644
//--- a/src/nxt_http_return.c
//+++ b/src/nxt_http_return.c
//@@ -196,6 +196,7 @@ nxt_http_return_send_ready(nxt_task_t *task,
void *obj, void *data)
// field->value = ctx->encoded.start;
// field->value_length = ctx->encoded.length;
// }
//+ fprintf(stderr, "ALX: target[%1$i]: <%2$.*1$s>\n",
(int)r->target.length, r->target.start);
//
// r->state = &nxt_http_return_send_state;
//

{
"listeners": {
"*:81": {
"pass": "routes/ru"
}
},

"routes": {
"ru": [{
"action": {
"return": 301,
"location": "$request_uri"
}
}]
}
}

$ curl -i http://localhost:81/*foo%2Abar?baz#arg
HTTP/1.1 301 Moved Permanently
Location: /*foo%2Abar?baz
Server: Unit/1.27.0
Date: Mon, 30 May 2022 16:04:30 GMT
Content-Length: 0

$ sudo cat /usr/local/unit.log | grep ALX
ALX: target[15]: </*foo%2Abar?baz>
diff 1885:09b857a2cca9 Wed May 26 18:19:00 UTC 2021 Andrey Suvorov <a.suvorov@f5.com> Enabling SSL_CTX configuration by using SSL_CONF_cmd().

To perform various configuration operations on SSL_CTX, OpenSSL provides
SSL_CONF_cmd(). Specifically, to configure ciphers for a listener,
"CipherString" and "Ciphersuites" file commands are used:
https://www.openssl.org/docs/man1.1.1/man3/SSL_CONF_cmd.html


This feature can be configured in the "tls/conf_commands" section.
diff 1884:4645a43bc248 Wed May 26 18:11:00 UTC 2021 Andrey Suvorov <a.suvorov@f5.com> Fixing crash during TLS connection shutdown.

A crash was caused by an incorrect timer handler nxt_h1p_idle_timeout() if
SSL_shutdown() returned SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE.

The flag SSL_RECEIVED_SHUTDOWN is used to avoid getting SSL_ERROR_WANT_READ, so
the server won't wait for a close notification from a client.

For SSL_ERROR_WANT_WRITE, a correct timer handler is set up.
diff 1882:65e7dcdd7be4 Wed May 26 16:48:00 UTC 2021 Oisin Canty <o.canty@f5.com> MIME: added PHP.
/unit/pkg/docker/
H A DMakefilediff 1333:7b483cf5cb09 Thu Dec 26 14:52:00 UTC 2019 Andrei Belov <defan@nginx.com> Merged with the default branch.
diff 526:2854ab568f0d Wed Feb 07 14:26:00 UTC 2018 Andrei Belov <defan@nginx.com> Docker: added Perl image.
/unit/auto/
H A Dunixdiff 1297:f04b5f7d6137 Tue Nov 26 16:15:00 UTC 2019 Tiago Natel <t.nateldemoura@f5.com> Changed the group listing to run unprivileged when possible.

Now the nxt_user_groups_get() function uses getgrouplist(3) when available
(except MacOS, see below). For some platforms, getgrouplist() supports
a method of probing how much groups the user has but the behavior is not
consistent. The method used here consists of optimistically trying to get up
to min(256, NGROUPS_MAX) groups; only if ngroups returned exceeds the original
value, we do a second call. This method can block main's process if LDAP/NDIS+
is in use.

MacOS has getgrouplist(3) but it's buggy. It doesn't update ngroups if the
value passed is smaller than the number of groups the user has. Some
projects (like Go stdlib) call getgrouplist() in a loop, increasing ngroups
until it exceeds the number of groups user belongs to or fail when a limit
is reached. For performance reasons, this is to be avoided and MacOS is
handled in the fallback implementation.

The fallback implementation is the old Unit approach. It saves main's
user groups (getgroups(2)) and then calls initgroups(3) to load application's
groups in main, then does a second getgroups(2) to store the gids and restore
main's groups in the end. Because of initgroups(3)' call to setgroups(2),
this method requires root capabilities. In the case of OSX, which has
small NGROUPS_MAX by default (16), it's not possible to restore main's groups
if it's large; if so, this method fallbacks again: user_cred gids aren't
stored, and the worker process calls initgroups() itself and may block for
some time if LDAP/NDIS+ is in use.
H A Dsourcesdiff 1975:6a47cab8f271 Tue Oct 26 12:43:00 UTC 2021 Valentin Bartenev <vbart@nginx.com> Custom implementation of Base64 decoding function.

Compared to the previous implementation based on OpenSSL, the new implementation
has these advantages:

1. Strict and reliable detection of invalid strings, including strings with
less than 4 bytes of garbage at the end;

2. Allows to use Base64 strings without '=' padding.
diff 63:b79fe37d9f24 Mon Jun 19 13:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Memory pools refactoring.
diff 53:0b10a73d4993 Wed May 31 12:26:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Skeleton of router configuration and request processing.
/unit/test/unit/applications/lang/
H A Dpython.pydiff 1050:5b9ec6a8ae06 Fri Apr 26 14:35:00 UTC 2019 Andrey Zelenkov <zelenkov@nginx.com> Tests: check application configuration loading.
H A Dgo.pydiff 1050:5b9ec6a8ae06 Fri Apr 26 14:35:00 UTC 2019 Andrey Zelenkov <zelenkov@nginx.com> Tests: check application configuration loading.
/unit/pkg/deb/debian/
H A Drules.indiff 957:a7af31b69692 Tue Feb 26 11:39:00 UTC 2019 Andrei Belov <defan@nginx.com> Packages: fixed packages build, broken in 00d8049418cf.
/unit/src/ruby/
H A Dnxt_ruby.cdiff 2208:26af8eadc943 Thu Sep 29 19:59:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Renamed a couple of members of nxt_unit_request_t.

This is a preparatory patch that renames the 'local' and 'local_length'
members of the nxt_unit_request_t structure to 'local_addr' and
'local_addr_length' in preparation for the adding of 'local_port' and
'local_port_length' members.

Suggested-by: Zhidao HONG <z.hong@f5.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 609:20894c5e4d08 Tue Apr 03 13:26:00 UTC 2018 Alexander Borisov <alexander.borisov@nginx.com> Ruby: added 'enc/trans/transdb' module for converting encodings.

This closes #92 issue on GitHub.
/unit/src/nodejs/unit-http/
H A Dhttp_server.jsdiff 1865:3c551b9721df Wed May 12 09:26:00 UTC 2021 Oisin Canty <o.canty@f5.com> Node.js: a shim for overriding "http" and "websocket" modules.

Also added stubs for Server.address()
This was done to prevent crashes in some popular frameworks like express

Supports both CommonJS and the new ES Modules system syntax e.g:

app.js:
const http = require('http')

app.mjs:
import http from "http"

Usage on Node 14.16.x and higher:
{
"type": "external",
"processes": {"spare": 0},
"working_directory": '/project',
"executable": "/usr/bin/env",
"arguments": [
"node",
"--loader",
"unit-http/require_shim.mjs"
"--require",
"unit-http/require_shim",
"app.js"
]
}

Usage on Node 14.15.x and lower:
{
"type": "external",
"processes": {"spare": 0},
"working_directory": '/project',
"executable": "/usr/bin/env",
"arguments": [
"node",
"--require",
"unit-http/require_shim",
"app.js"
]
}

12345678910