Christian Grothoff
45aa83f172
fix memory leak on error path
2024-01-21 11:44:15 +01:00
Christian Grothoff
0e4d6c2f93
clean up logic, simplify one dead branch in test
2024-01-21 10:45:19 +01:00
Christian Grothoff
52a5e46584
use correct HTTP header (content type, not content encoding) for mime type in example; do check return value in example
2024-01-21 10:33:44 +01:00
Christian Grothoff
9131da3340
regenerate POTfiles
2024-01-21 10:18:35 +01:00
Christian Grothoff
0d85d57380
add missing lock, do not call 'close(-1)' on very rare error path
2024-01-21 10:18:21 +01:00
Christian Grothoff
639435c215
notes on MHD2 API
2024-01-19 20:13:23 +01:00
Evgeny Grin (Karlson2k)
bcfdf016a4
Docs correction as suggested by Aymeric Agon-Rambosson in ML
2024-01-05 13:58:26 +03:00
Evgeny Grin (Karlson2k)
47f5f72591
test_upgrade{,_large}{,_tls}: unified code, removed workarounds, added new test
...
Added test with buffers larger than maximum TLS packet size and with
message larger than buffer.
New MHD code does not need any "kicker" workaround anymore (used in
old test_upgrade_large.c code).
2024-01-04 16:47:07 +03:00
Evgeny Grin (Karlson2k)
8bfaec71d5
MHD_OPTION_CONNECTION_MEMORY_{LIMIT,INCREMENT}: added ignore of zero value
2024-01-04 16:33:36 +03:00
Evgeny Grin (Karlson2k)
156e10012c
test_upgrade: changed the order of send/receive
2024-01-02 15:46:10 +03:00
Evgeny Grin (Karlson2k)
8bb89d0be4
connection.c: muted false-positive compiler warning
2023-12-31 15:53:26 +03:00
Evgeny Grin (Karlson2k)
d5ea3b626b
daemon: one-line comment formatting
2023-12-31 15:37:53 +03:00
Christian Grothoff
de02ef1342
initialize required_bytes on all code paths to avoid false-positive compiler warning
2023-12-31 12:12:52 +01:00
Evgeny Grin (Karlson2k)
a532889eff
test_digestauth_concurrent: fixed error message
2023-12-29 16:58:16 +03:00
Evgeny Grin (Karlson2k)
8d4496944b
configure: implemented setting DAuth defaults by parameters
2023-12-29 16:58:16 +03:00
Evgeny Grin (Karlson2k)
e0d8708b33
tests: added setting of DAuth max nc value by daemon option
2023-12-29 16:57:15 +03:00
Evgeny Grin (Karlson2k)
ce1ea19549
Added daemon options for default nonce timeout and max nc values
2023-12-28 13:30:47 +03:00
Evgeny Grin (Karlson2k)
ff63d75797
digest auth: added default timeout and max nc values
2023-12-28 12:51:07 +03:00
Evgeny Grin (Karlson2k)
6f9ff50bed
internal.h: reordered members in struct MHD_Daemon
2023-12-28 11:29:38 +03:00
Evgeny Grin (Karlson2k)
448901b4d5
microhttpd.h: minor doxy improvement
2023-12-28 10:30:17 +03:00
Evgeny Grin (Karlson2k)
c39c55a220
bootstrap: simplified autotools invocation
...
Old workarounds are not needed any more as autopoint is executed now
automatically by 'make dist'
2023-12-28 09:26:47 +03:00
Evgeny Grin (Karlson2k)
c9402fb971
bootstrap: added fallback for uncrustify conf installation
2023-12-28 09:24:24 +03:00
Evgeny Grin (Karlson2k)
9c22b66afd
bootstrap: fixed fallback detection of sources dir
2023-12-28 09:14:51 +03:00
Evgeny Grin (Karlson2k)
8bb481f66e
"Upgraded" TLS connections: removed minor duplicated code
2023-12-02 22:49:25 +03:00
Evgeny Grin (Karlson2k)
da9505598c
Fixed epoll processing of "Upgraded" connections broken by 38599d9fab
2023-12-02 22:48:17 +03:00
Evgeny Grin (Karlson2k)
f6e4e13e92
"Upgraded" TLS connections: fixed sending of large messages
...
In epoll mode with internal threads if large enough (>16KB) sending
buffer is used, "write ready" status could be cleared when it should
not.
Note: to have >16KB buffer for sending, connection pool memory should
be >32KB + request header size (+ various pointers size).
2023-12-02 20:14:31 +03:00
Evgeny Grin (Karlson2k)
6fb386ec44
"Upgraded" TLS connections: force processing again if 'was_close' missed
2023-12-02 20:14:31 +03:00
Evgeny Grin (Karlson2k)
38599d9fab
"Upgraded" TLS connections: fixed reading last chunks when closing
2023-12-02 20:14:31 +03:00
Evgeny Grin (Karlson2k)
f09bf9eafd
test_upgrade: added checking of socket shutdown status
...
Currently enabled only for non-TLS connections
2023-12-02 20:14:23 +03:00
Christian Grothoff
4e5b65706e
fix #7967
2023-12-02 20:32:42 +09:00
Evgeny Grin (Karlson2k)
38c06b6aeb
test_upgrade: implemented timeouts for all socket operations
2023-11-24 17:49:41 +03:00
Evgeny Grin (Karlson2k)
b3c1e629e6
test_upgrade: merged similar code paths
2023-11-24 16:08:31 +03:00
Evgeny Grin (Karlson2k)
1070d24aa6
test_upgrade: fixed timeout value for external select
...
Now test properly uses MHD-provided timeout value. This should detect
problems if wrong timeout is reported for external polling modes.
2023-11-24 16:08:31 +03:00
Evgeny Grin (Karlson2k)
7d7d9bc6b1
test_upgrade: added timeout detection on send/recv operations
2023-11-24 16:08:31 +03:00
Evgeny Grin (Karlson2k)
53e1e48648
test_upgrade: set TCP_NODELAY unconditionally on used sockets
2023-11-24 16:08:30 +03:00
Evgeny Grin (Karlson2k)
80ecc6d37c
test_upgrade: added initial support for timeout detection
2023-11-24 16:08:30 +03:00
Evgeny Grin (Karlson2k)
90b2bab0d5
test_upgrade: used sized send and receive, removed VLA, other improvements
2023-11-24 16:08:30 +03:00
Evgeny Grin (Karlson2k)
1cf76efe80
test_upgrade{,_large}: minor improvements
2023-11-24 16:08:30 +03:00
Evgeny Grin (Karlson2k)
0ddd04b4fc
mhd_sockets: fixed error code for W32
...
The code was used only in tests and was not relevant for W32.
2023-11-24 16:08:25 +03:00
Evgeny Grin (Karlson2k)
a19df909da
Officially support zero for MHD_OPTION_THREAD_POOL_SIZE
2023-11-23 13:47:00 +03:00
Evgeny Grin (Karlson2k)
67b1cdc29d
Tests: added use of MHD_USE_NO_THREAD_SAFETY flag
2023-11-23 13:47:00 +03:00
Evgeny Grin (Karlson2k)
b05555f837
Added new daemon flag MHD_USE_NO_THREAD_SAFETY
...
Do not assume anymore single-threaded environment if external polling
is used.
The application is free to use multiple threads if MHD in the external
polling mode.
The new flag could be used to disable some thread-safety in MHD to
improve single-thread processing speed and resources usage. Basically
the new flag restores the old behaviour for external polling mode.
2023-11-21 17:37:15 +03:00
Evgeny Grin (Karlson2k)
38e2c1faac
Unified and simplified fd_set filling
2023-11-21 17:37:14 +03:00
Evgeny Grin (Karlson2k)
af6dd184d6
Micro-optimisations for non-overridable FD_SETSIZE
2023-11-21 17:37:14 +03:00
Evgeny Grin (Karlson2k)
f6b5ec5869
Improved daemon shutdown handling in external polling mode
2023-11-21 17:37:14 +03:00
Evgeny Grin (Karlson2k)
6fde86c265
test_digestauth2: fixed order of the initial checks
...
This should improve reported warnings when test is skipped.
2023-11-21 17:37:14 +03:00
Evgeny Grin (Karlson2k)
9dcf06f9eb
test_daemon: fixed to not skip if failed
2023-11-21 17:37:13 +03:00
Evgeny Grin (Karlson2k)
53a691039c
Moved user options counter to shorter its lifetime
2023-11-21 17:37:13 +03:00
Evgeny Grin (Karlson2k)
a54fe75ecd
MHD_start_daemon(): reject INTERNAL_POLLING_THREAD if threads are disabled
2023-11-21 17:37:13 +03:00
Evgeny Grin (Karlson2k)
5cbdf77176
MHD_start_daemon(): moved daemon flags internal initialisation
2023-11-21 17:37:13 +03:00