Home
last modified time | relevance | path

Searched hist:42 (Results 26 – 50 of 83) sorted by relevance

1234

/unit/src/
H A Dnxt_timer.cdiff 959:159b672b12ce Tue Feb 26 14:42:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Fixed violation of the strict aliasing rules in 5d0edd35c4ce.

In order to reduce number of operations over rb-tree and process them in
batches simultaneously, all the timers changes are temporary stored in array.
While processing of these changes, the same memory is also used for storing
pointers to postpone timers adding.

As the same block of memory has been referenced by two different types of
pointers (nxt_timer_change_t * and nxt_timer_t **), some compilers may reorder
operations with these pointers and produce broken code. See ticket #221 on
GitHub for a particular case.

Now the same "nxt_timer_change_t" structure is used in both cases.

Also, reverted the -fno-strict-aliasing flag, which has been introduced in
ef76227ec159 as a workaround for this issue.
H A Dnxt_queue.hdiff 42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
H A Dnxt_external.cdiff 1543:42f27153db91 Tue Aug 11 16:19:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Libunit refactoring: port management.

- Changed the port management callbacks to notifications, which e. g. avoids
the need to call the libunit function
- Added context and library instance reference counts for a safer resource
release
- Added the router main port initialization
H A Dnxt_event_engine.cdiff 326:2aad6a5fac13 Fri Sep 22 13:42:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Removed fibers from compilation.

It's not used anyway, but breaks building with musl.

This closes issue #5 on GitHub.
H A Dnxt_thread.hdiff 326:2aad6a5fac13 Fri Sep 22 13:42:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Removed fibers from compilation.

It's not used anyway, but breaks building with musl.

This closes issue #5 on GitHub.
H A Dnxt_port_memory.h42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
H A Dnxt_sprintf.cdiff 326:2aad6a5fac13 Fri Sep 22 13:42:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Removed fibers from compilation.

It's not used anyway, but breaks building with musl.

This closes issue #5 on GitHub.
H A Dnxt_buf.hdiff 42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
H A Dnxt_listen_socket.cdiff 2378:0f675fecf180 Thu Mar 16 00:42:00 UTC 2023 Andrew Clayton <a.clayton@nginx.com> Improve an error message regarding Unix domain sockets.

When starting unit, if its Unix domain control socket was already active
you would get an error message like

2023/03/15 18:07:55 [alert] 53875#8669650 connect(5, unix:/tmp/control.sock) succeed, address already in use

which is confusing in a couple of regards, firstly we have the classic
success/failure message and secondly 'address already in use' is an
actual errno value, EADDRINUSE and we didn't get an error from this
connect(2).

Re-word this error message for greater clarity.

Reported-by: Liam Crilly <liam.crilly@nginx.com>
Cc: Liam Crilly <liam.crilly@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
H A Dnxt_process.cdiff 2347:427a1ffda093 Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 2321:b8d29a14676d Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 1543:42f27153db91 Tue Aug 11 16:19:00 UTC 2020 Max Romanov <max.romanov@nginx.com> Libunit refactoring: port management.

- Changed the port management callbacks to notifications, which e. g. avoids
the need to call the libunit function
- Added context and library instance reference counts for a safer resource
release
- Added the router main port initialization
diff 259:9cf0e151e752 Wed Aug 30 21:42:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nginext has been renamed to unit.
diff 42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
H A Dnxt_clone.cdiff 2347:427a1ffda093 Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 2321:b8d29a14676d Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
H A Dnxt_port_memory.cdiff 259:9cf0e151e752 Wed Aug 30 21:42:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nginext has been renamed to unit.
42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
/unit/pkg/rpm/
H A Dunit.spec.indiff 2400:799719fc6a62 Wed Mar 29 07:42:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Packages: fixed rpm builds after 817968931c58.
diff 2048:069c16dd4ed3 Thu Dec 02 15:42:00 UTC 2021 Andrei Belov <defan@nginx.com> Merged with the 1.26 branch.
diff 959:159b672b12ce Tue Feb 26 14:42:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Fixed violation of the strict aliasing rules in 5d0edd35c4ce.

In order to reduce number of operations over rb-tree and process them in
batches simultaneously, all the timers changes are temporary stored in array.
While processing of these changes, the same memory is also used for storing
pointers to postpone timers adding.

As the same block of memory has been referenced by two different types of
pointers (nxt_timer_change_t * and nxt_timer_t **), some compilers may reorder
operations with these pointers and produce broken code. See ticket #221 on
GitHub for a particular case.

Now the same "nxt_timer_change_t" structure is used in both cases.

Also, reverted the -fno-strict-aliasing flag, which has been introduced in
ef76227ec159 as a workaround for this issue.
H A Dunit.module.spec.indiff 959:159b672b12ce Tue Feb 26 14:42:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> Fixed violation of the strict aliasing rules in 5d0edd35c4ce.

In order to reduce number of operations over rb-tree and process them in
batches simultaneously, all the timers changes are temporary stored in array.
While processing of these changes, the same memory is also used for storing
pointers to postpone timers adding.

As the same block of memory has been referenced by two different types of
pointers (nxt_timer_change_t * and nxt_timer_t **), some compilers may reorder
operations with these pointers and produce broken code. See ticket #221 on
GitHub for a particular case.

Now the same "nxt_timer_change_t" structure is used in both cases.

Also, reverted the -fno-strict-aliasing flag, which has been introduced in
ef76227ec159 as a workaround for this issue.
/unit/test/
H A Dtest_ruby_application.pydiff 2599:df47c93ae679 Fri Nov 17 17:28:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: Ruby input.rewind is no longer required.

For more information see:
https://github.com/rack/rack/commit/42aff22f708123839ba706cbe659d108b47c40c7
diff 1842:7a35853a618d Fri Mar 26 15:42:00 UTC 2021 Andrei Zeliankou <zelenkov@nginx.com> Tests: added test for Ruby default encoding.
H A Dtest_php_application.pydiff 2574:98b67e77114c Wed Oct 11 15:42:00 UTC 2023 Andrei Zeliankou <zelenkov@nginx.com> Tests: added PHP test with rewrite and query string.

This test reproduces https://github.com/nginx/unit/issues/964.
diff 1090:203a8e37e2dd Fri Jul 05 15:42:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> PHP: improved response status code handling.

There's no reason to parse "http_status_line"; the PHP interpreter already
does this. If the line contains a valid status code, it's assigned to
"http_response_code".

This also fixes invalid status line handling, where the nxt_int_parse()
function returned -1; it was cast to unsigned, yielding response code 65535.
H A Dtest_variables.pydiff 2236:a0d15bc96b3c Tue Nov 15 00:42:00 UTC 2022 Andrei Zeliankou <zelenkov@nginx.com> Tests: fixed assertion in test_variables_dynamic.
/unit/pkg/docker/
H A DDockerfile.jsc11diff 2394:9b85367ed09e Tue Mar 28 20:42:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Regenerated Dockerfiles.
diff 2283:37cac7fec92e Thu Dec 15 00:42:00 UTC 2022 Andrei Zeliankou <zelenkov@nginx.com> Generated Dockerfiles for Unit 1.29.0.
H A DDockerfile.minimaldiff 2394:9b85367ed09e Tue Mar 28 20:42:00 UTC 2023 Konstantin Pavlov <thresh@nginx.com> Regenerated Dockerfiles.
diff 2283:37cac7fec92e Thu Dec 15 00:42:00 UTC 2022 Andrei Zeliankou <zelenkov@nginx.com> Generated Dockerfiles for Unit 1.29.0.
diff 2048:069c16dd4ed3 Thu Dec 02 15:42:00 UTC 2021 Andrei Belov <defan@nginx.com> Merged with the 1.26 branch.
/unit/auto/
H A Dsourcesdiff 2347:427a1ffda093 Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 2321:b8d29a14676d Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 2175:e83cff38d672 Wed Aug 03 12:42:00 UTC 2022 Alejandro Colomar <alx.manpages@gmail.com> Removed dead code.

nxt_sockaddr_ntop() stopped being used in commit (git) 029942f4eb71.
It has been replaced mostly by nxt_sockaddr_text().

commit 029942f4eb7196c2cff0d0e26bc6ff274138f7d8
Author: Igor Sysoev <igor@sysoev.ru>
Date: Wed Feb 22 15:09:59 2017 +0300

I/O operations refactoring.

nxt_job_sockaddr_parse() stopped being used in commit (git) 794248090a74.

commit 794248090a74f31cbfcf24ea8c835df2d4d21073
Author: Igor Sysoev <igor@sysoev.ru>
Date: Wed Mar 4 14:04:08 2020 +0300

Legacy upstream code removed.

Also, remove functions and types used only by those two functions:

nxt_job_sockaddr_unix_parse()
nxt_job_sockaddr_inet6_parse()
nxt_job_sockaddr_inet_parse()
nxt_job_sockaddr_parse_t
nxt_job_resolve()
nxt_job_resolve_t
diff 326:2aad6a5fac13 Fri Sep 22 13:42:00 UTC 2017 Valentin Bartenev <vbart@nginx.com> Removed fibers from compilation.

It's not used anyway, but breaks building with musl.

This closes issue #5 on GitHub.
diff 42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
H A Disolationdiff 2347:427a1ffda093 Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
diff 2321:b8d29a14676d Fri Nov 18 23:42:00 UTC 2022 Andrew Clayton <a.clayton@nginx.com> Isolation: Rename NXT_HAVE_CLONE -> NXT_HAVE_LINUX_NS.

Due to the need to replace our use of clone/__NR_clone on Linux with
fork(2)/unshare(2) for enabling Linux namespaces(7) to keep the
pthreads(7) API working. Let's rename NXT_HAVE_CLONE to
NXT_HAVE_LINUX_NS, i.e name it after the feature, not how it's
implemented, then in future if we change how we do namespaces again we
don't have to rename this.

Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
/unit/
H A Dversiondiff 2289:4c75dcbaa24c Fri Dec 16 00:42:00 UTC 2022 Andrei Zeliankou <zelenkov@nginx.com> Version bump.
H A Dconfigurediff 265:864835cbba67 Thu Aug 31 18:42:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Introducing install & uninstall Makefile targets.
diff 259:9cf0e151e752 Wed Aug 30 21:42:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nginext has been renamed to unit.
diff 42:def41906e4a5 Fri May 12 17:32:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Using shared memory to send data via nxt_port.

Usage:
b = nxt_port_mmap_get_buf(task, port, size);
b->mem.free = nxt_cpymem(b->mem.free, data, size);
nxt_port_socket_write(task, port, NXT_PORT_MSG_DATA, -1, 0, b);
/unit/auto/modules/
H A Dpythondiff 265:864835cbba67 Thu Aug 31 18:42:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Introducing install & uninstall Makefile targets.
diff 260:2a6ee82d77c1 Wed Aug 30 21:42:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Changed modules names format.
diff 259:9cf0e151e752 Wed Aug 30 21:42:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nginext has been renamed to unit.
H A Dphpdiff 265:864835cbba67 Thu Aug 31 18:42:00 UTC 2017 Max Romanov <max.romanov@nginx.com> Introducing install & uninstall Makefile targets.
diff 260:2a6ee82d77c1 Wed Aug 30 21:42:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> Changed modules names format.
diff 259:9cf0e151e752 Wed Aug 30 21:42:00 UTC 2017 Igor Sysoev <igor@sysoev.ru> nginext has been renamed to unit.

1234