[nginx] Mp4: of.directio_off flag to avoid unneeded syscalls.

2025-05-25 Thread Maxim Dounin
details: http://freenginx.org/hg/nginx/rev/268e0fb3a16c branches: changeset: 9360:268e0fb3a16c user: Maxim Dounin date: Sun May 25 23:57:39 2025 +0300 description: Mp4: of.directio_off flag to avoid unneeded syscalls. When set, ngx_open_cached_file() won't try to enable directio on

[nginx] Mp4: fixed directio usage with open_file_cache.

2025-05-25 Thread Maxim Dounin
details: http://freenginx.org/hg/nginx/rev/314192d67a91 branches: changeset: 9359:314192d67a91 user: Maxim Dounin date: Sun May 25 23:57:28 2025 +0300 description: Mp4: fixed directio usage with open_file_cache. With open_file_cache, if directio is enabled on a file descriptor after

[nginx-tests] Tests: mp4 tests with directio and open_file_cache.

2025-05-25 Thread Maxim Dounin
details: http://freenginx.org/hg/nginx-tests/rev/ba4f76b3b823 branches: changeset: 2008:ba4f76b3b823 user: Maxim Dounin date: Mon May 26 00:02:51 2025 +0300 description: Tests: mp4 tests with directio and open_file_cache. diffstat: mp4_directio.t | 78

[nginx] Cache: directio support when reading cache files.

2025-05-25 Thread Maxim Dounin
details: http://freenginx.org/hg/nginx/rev/e2a6fefd81db branches: changeset: 9361:e2a6fefd81db user: Maxim Dounin date: Mon May 26 00:04:45 2025 +0300 description: Cache: directio support when reading cache files. diffstat: src/http/ngx_http_file_cache.c | 32

[PATCH 0 of 5] open file cache fixes

2025-05-25 Thread Maxim Dounin
Hello! The following patch series implements some open file cache fixes. Notably, directio handling is fixed to be compatible with threaded IO. -- Maxim Dounin

[PATCH 1 of 5] Disabled open_file_cache on platforms without pread()

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748208420 -10800 # Mon May 26 00:27:00 2025 +0300 # Node ID 811bf7dc0d46e5e6d69e700a1a5a3852d4ba0381 # Parent e2a6fefd81dbe201a88876a95f34620df87259a2 Disabled open_file_cache on platforms without pread(). Current open file cache code cannot

[PATCH 2 of 5] Open file cache: style

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748208424 -10800 # Mon May 26 00:27:04 2025 +0300 # Node ID 8cc90a3e3e74d31a92b2732f6f4003684a011fcd # Parent 811bf7dc0d46e5e6d69e700a1a5a3852d4ba0381 Open file cache: style. diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_fil

[PATCH 3 of 5] Open file cache: disable_symlinks with open_file_cache_events

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748208427 -10800 # Mon May 26 00:27:07 2025 +0300 # Node ID f84080a83901176c0dd95681b19290f070de045c # Parent 8cc90a3e3e74d31a92b2732f6f4003684a011fcd Open file cache: disable_symlinks with open_file_cache_events. Previously, different disabl

[PATCH 4 of 5] Open file cache: fixed file->uses loss on retest

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748208430 -10800 # Mon May 26 00:27:10 2025 +0300 # Node ID 6032949667f1e5fda9ce364d6eb1668074274c56 # Parent f84080a83901176c0dd95681b19290f070de045c Open file cache: fixed file->uses loss on retest. If an open file was reopened during a ret

[PATCH 5 of 5] Open file cached: correct directio handling with threads

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748208437 -10800 # Mon May 26 00:27:17 2025 +0300 # Node ID e3e07705481df3c60a3bac8af9101323ee7ceb83 # Parent 6032949667f1e5fda9ce364d6eb1668074274c56 Open file cached: correct directio handling with threads. On Linux with open_file_cache and

[PATCH 3 of 6] Cleaned up iov_base, msg_name, msg_control type casts

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748209475 -10800 # Mon May 26 00:44:35 2025 +0300 # Node ID 4eed7851024b4ca5d77107676025e84324e23c74 # Parent 38f1f374523ff2630e59f6a722fd6f9d7f70ac01 Cleaned up iov_base, msg_name, msg_control type casts. In old OSes iov_base, msg_name, and

[PATCH 5 of 6] Fixed unused variable in ngx_set_srcaddr_cmsg() on MINIX

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748209507 -10800 # Mon May 26 00:45:07 2025 +0300 # Node ID 7a595fa6ade10f801f6e9bc84a7fd8fc1f9cca21 # Parent 3e11162ed39312387fc79a731071b0a50aa15acc Fixed unused variable in ngx_set_srcaddr_cmsg() on MINIX. diff --git a/src/os/unix/ngx_udp_

[PATCH 1 of 6] Configure: fixed nobody/nogroup detection stderr redirection

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748209461 -10800 # Mon May 26 00:44:21 2025 +0300 # Node ID 03f5c84e7e8c05ce16f6f36452e4cb818c85dde6 # Parent e2a6fefd81dbe201a88876a95f34620df87259a2 Configure: fixed nobody/nogroup detection stderr redirection. Previously, "grep: /etc/group

[PATCH 6 of 6] Compatibility with systems without SA_SIGINFO in sigaction()

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748209526 -10800 # Mon May 26 00:45:26 2025 +0300 # Node ID 95e5cc6c73d1b94a59c4eea26bd2956a1cdc2f3d # Parent 7a595fa6ade10f801f6e9bc84a7fd8fc1f9cca21 Compatibility with systems without SA_SIGINFO in sigaction(). This change restores compatib

[PATCH 4 of 6] Adjusted mmap() type casts

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748209484 -10800 # Mon May 26 00:44:44 2025 +0300 # Node ID 3e11162ed39312387fc79a731071b0a50aa15acc # Parent 4eed7851024b4ca5d77107676025e84324e23c74 Adjusted mmap() type casts. Type casting mmap() result explicitly to (u_char *) is only nee

[PATCH 0 of 6] various compatibility fixes

2025-05-25 Thread Maxim Dounin
Hello! The following patch series fixes some compilation issues as observed on various exotic platforms, notably seen on MINIX, Cygwin, and FreeBSD 2.2.9. -- Maxim Dounin

[PATCH 2 of 6] Configure: added uint8_t and uint16_t detection

2025-05-25 Thread Maxim Dounin
# HG changeset patch # User Maxim Dounin # Date 1748209464 -10800 # Mon May 26 00:44:24 2025 +0300 # Node ID 38f1f374523ff2630e59f6a722fd6f9d7f70ac01 # Parent 03f5c84e7e8c05ce16f6f36452e4cb818c85dde6 Configure: added uint8_t and uint16_t detection. This fixes compilation on some old systems