History log of /unit/ (Results 151 – 175 of 1953)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
1881:46d367c43ded25-May-2021 Max Romanov

Fixing racing condition on listen socket close in router (v2).

This patch fixes a possible race between the nxt_router_conf_wait() and
nxt_router_listen_socket_release() function calls and improves

Fixing racing condition on listen socket close in router (v2).

This patch fixes a possible race between the nxt_router_conf_wait() and
nxt_router_listen_socket_release() function calls and improves the 7f1b2eaa2d58
commit fix.

show more ...

1880:00dc6b21190625-May-2021 Max Romanov

Go: fixing tests for Go 1.16.

In Go 1.16, the module-aware mode is enabled by default; to fall back to
previous behavior, the GO111MODULE environment variable should be set to
'auto'.

Details: http

Go: fixing tests for Go 1.16.

In Go 1.16, the module-aware mode is enabled by default; to fall back to
previous behavior, the GO111MODULE environment variable should be set to
'auto'.

Details: https://golang.org/doc/go1.16

show more ...

1879:fb89cf8544e725-May-2021 Oisin Canty

Configuration: generalized application "targets" validation.

1878:c4c6013d319e24-May-2021 Andrei Zeliankou

Tests: added additional check in tests with timeouts.

1877:e09738cfc6be24-May-2021 Andrei Zeliankou

Tests: test_settings_send_timeout improved.

Data length adjusts depending on socket buffer size when it's possible.

1876:f85b8509454124-May-2021 Oisin Canty

Node.js: renamed "require_shim" to "loader".

1875:6e77d607c7a324-May-2021 Andrei Zeliankou

Tests: minor fixes.

1874:3d76ec42654021-May-2021 Valentin Bartenev

PHP: adopted "file_handle" to Zend API changes in 8.1.0-dev.

This fixes building module with the development version of PHP after the change:
https://github.com/php/php-src/commit/c732ab400af92c54ee

PHP: adopted "file_handle" to Zend API changes in 8.1.0-dev.

This fixes building module with the development version of PHP after the change:
https://github.com/php/php-src/commit/c732ab400af92c54eee47c487a56009f1d79dd5d

show more ...

1873:d0cc4fd78d4320-May-2021 Oisin Canty

Tests: Python targets.

1872:9f8df8b810e020-May-2021 Oisin Canty

Python: support for multiple targets.

1871:11bd3ef5a1fc18-May-2021 Andrei Zeliankou

Tests: added test to check port release.

1870:6a68fb236f5b18-May-2021 Oisin Canty

Ruby: changing deprecated rb_cData to rb_cObject.

Ruby 3.0 deprecated rb_cData with the intention to remove it in release 3.1.
This commit changes references of rb_cData to rb_cObject. This was don

Ruby: changing deprecated rb_cData to rb_cObject.

Ruby 3.0 deprecated rb_cData with the intention to remove it in release 3.1.
This commit changes references of rb_cData to rb_cObject. This was done so we
can support distributions that package Ruby 3.0, such as Fedora 34.

We also need to call rb_undef_alloc_func because we're no longer deriving from
rb_cData. This prevents unnecessary allocations.

See:
https://docs.ruby-lang.org/en/3.0.0/doc/extension_rdoc.html

"It is recommended that klass derives from a special class called Data
(rb_cData) but not from Object or other ordinal classes. If it doesn't,
you have to call rb_undef_alloc_func(klass)."

show more ...

1869:03648307ff8c17-May-2021 Andrey Suvorov

Fixing a crash after applying the wrong TLS configuration.

When an invalid TLS configuration is applied (such as the conf_commands
feature), nxt_cert_store_get() creates a buffer to send a certifica

Fixing a crash after applying the wrong TLS configuration.

When an invalid TLS configuration is applied (such as the conf_commands
feature), nxt_cert_store_get() creates a buffer to send a certificate request
to the main process and adds its default completion handler to an asynchronous
queue to free the allocated buffer. However, if configuration fails,
nxt_router_conf_error() removes the memory pool used to allocate the buffer,
causing a crash when the completion handler is dispatched.


Assertion "src/nxt_buf.c:208 assertion failed: data == b->parent" is triggered
when is NXT_DEBUG enabled in the configure script.


This patch uses a reference counter to retain the memory pool and redefines the
completion handler to free the buffer before releasing the memory pool.

show more ...

1868:99977555085017-May-2021 Andrei Zeliankou

Tests: fixed incorrect "--restart" mode performing.

1867:7f1b2eaa2d5817-May-2021 Max Romanov

Fixing racing condition on listen socket close in router.

Listen socket is actually closed in the instant timer handler. This patch moves
the "configuration has been applied" notification to the ti

Fixing racing condition on listen socket close in router.

Listen socket is actually closed in the instant timer handler. This patch moves
the "configuration has been applied" notification to the timer handler to avoid
a situation when the user gets the response from the controller, but the listen
socket is still open in the router.

show more ...

1866:48315753048912-May-2021 Andrei Zeliankou

Tests: added test for TLS with IP in SAN.

1865:3c551b9721df12-May-2021 Oisin Canty

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

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"
]
}

show more ...


docs/changes.xml
src/nodejs/unit-http/http.js
src/nodejs/unit-http/http_server.js
src/nodejs/unit-http/require_shim.js
src/nodejs/unit-http/require_shim.mjs
test/node/404/app.js
test/node/basic/app.js
test/node/double_end/app.js
test/node/get_header_names/app.js
test/node/get_header_type/app.js
test/node/get_variables/app.js
test/node/has_header/app.js
test/node/header_name_case/app.js
test/node/header_name_valid/app.js
test/node/header_value_object/app.js
test/node/mirror/app.js
test/node/post_variables/app.js
test/node/promise_end/app.js
test/node/promise_handler/app.js
test/node/remove_header/app.js
test/node/require_shim/es_modules_http/app.mjs
test/node/require_shim/es_modules_http_indirect/app.js
test/node/require_shim/es_modules_http_indirect/module.mjs
test/node/require_shim/es_modules_websocket/app.mjs
test/node/require_shim/es_modules_websocket_indirect/app.js
test/node/require_shim/es_modules_websocket_indirect/module.mjs
test/node/require_shim/transitive_dependency/app.js
test/node/require_shim/transitive_dependency/transitive_http.js
test/node/require_shim/unit_http/app.js
test/node/set_header_array/app.js
test/node/status_message/app.js
test/node/update_header/app.js
test/node/variables/app.js
test/node/websockets/mirror/app.js
test/node/websockets/mirror_fragmentation/app.js
test/node/write_before_write_head/app.js
test/node/write_buffer/app.js
test/node/write_callback/app.js
test/node/write_multiple/app.js
test/node/write_return/app.js
test/test_node_application.py
test/test_node_es_modules.py
test/unit/applications/lang/node.py
test/unit/check/node.py
1864:755e40af8e1f11-May-2021 Andrei Zeliankou

Tests: temporary dir removed after tests execution.

1863:98a5801c01ba07-May-2021 Andrei Zeliankou

Tests: added test for TLS with empty Subject field.

1862:a605c2660b1d07-May-2021 Andrei Zeliankou

Tests: PHP test with getting variable before the script is loaded.

1861:570b306cc70807-May-2021 Valentin Bartenev

PHP: forced initialization of $_SERVER in fastcgi_finish_request().

The "auto_globals_jit" PHP option postponed the initialization of the $_SERVER
global variable until the script using it had been

PHP: forced initialization of $_SERVER in fastcgi_finish_request().

The "auto_globals_jit" PHP option postponed the initialization of the $_SERVER
global variable until the script using it had been loaded (e. g. via the
"include" expression). As a result, nxt_php_register_variables() could be
called after fastcgi_finish_request() had finished the request and nulled
ctx->req, which thus caused a segmentation fault.

show more ...

1860:f659bc14888306-May-2021 Oisin Canty

Tests: MIME filtering

1859:970f9f72c29d06-May-2021 Oisin Canty

Static: implemented MIME filtering

1858:a9a5746051aa04-May-2021 Andrei Zeliankou

Tests: added tests for openat2() features.

1857:265d1d735a4e05-May-2021 Zhidao HONG

Fixed format and arguments mismatches in error log messages.

12345678910>>...79