Commit Graph
3583 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 4e8f86a655 Added support for ALPN protocols list for TLS connections 2021-04-19 18:39:56 +03:00
Evgeny Grin (Karlson2k) 523fa712fd connection: report error details for recv() as well 2021-04-19 16:23:22 +03:00
Evgeny Grin (Karlson2k) 0b22e20357 log messaged-related minor fixes 2021-04-19 16:23:22 +03:00
Evgeny Grin (Karlson2k) 69c600bd85 mhd_send: added TLS-specific error code 2021-04-19 16:23:21 +03:00
Evgeny Grin (Karlson2k) 65dac757a6 testzzuf/test_put_chunked: fixed callback 2021-04-19 13:46:07 +03:00
Evgeny Grin (Karlson2k) ff842eabd8 testzzuf: print wrong callback parameters values 2021-04-19 13:38:16 +03:00
Evgeny Grin (Karlson2k) e53b8c0b28 connection: report socket error in MHD log 2021-04-18 20:47:38 +03:00
Evgeny Grin (Karlson2k) c5b661b672 mhd_send: more detailed error results 2021-04-18 17:13:01 +03:00
Evgeny Grin (Karlson2k) 17934e4ebf MHD_create_response_from_iovec(): more portable behavior
Reject responses larger than SSIZE_MAX as they could be rejected
by sendmsg()
2021-04-18 14:18:01 +03:00
Evgeny Grin (Karlson2k) 61858b1e1a mhd_sockets: removed dead code 2021-04-18 13:47:37 +03:00
Evgeny Grin (Karlson2k) 2a0c96ff5b response: simplified code
Reused cork set functions from mhd_send.
2021-04-17 18:50:52 +03:00
Evgeny Grin (Karlson2k) c1b8333aa8 mhd_send: changed results for non-IP sockets
When some IP option is tried for non-IP socket report failure as option
cannot be applied.
2021-04-17 18:24:25 +03:00
Evgeny Grin (Karlson2k) b2b8492dee memorypool: muted compiler warning and additional assert 2021-04-17 18:03:40 +03:00
Evgeny Grin (Karlson2k) 898453fea4 mhd_send: fixed copy-paster error in 99f2df6dea
One more copy-paste error
2021-04-17 18:02:55 +03:00
Evgeny Grin (Karlson2k) 17e01403c6 mhd_send: made MHD_connection_set_cork_state_() non-static 2021-04-17 16:49:26 +03:00
Evgeny Grin (Karlson2k) e2d6e58257 test_upgrade_large: do not uncork the socket
Uncorking of the socket is not required as it wasn't corked.
Moreover, uncorking always flush network buffers with Linux
kernel, while on all other platforms behavior is different.
As test should function on all platforms in the same way,
we shouldn't use unportable features.
2021-04-17 16:45:45 +03:00
Evgeny Grin (Karlson2k) abb47a11ec mhd_send: fixed log messaged broken by 99f2df6dea 2021-04-17 16:45:44 +03:00
Evgeny Grin (Karlson2k) 99f2df6dea mhd_send: finally handle sockets errors in portable way 2021-04-16 17:58:14 +03:00
Evgeny Grin (Karlson2k) 9829eb3498 Formatting and minor fix for 61fa389644 2021-04-16 17:17:28 +03:00
Evgeny Grin (Karlson2k) 61fa389644 Fixes and improvements for 6c751386a2
Fixed build on platforms without epoll,
saved one sys-call for externally added connections.
2021-04-16 17:11:21 +03:00
Evgeny Grin (Karlson2k) ec591a7022 configure: corrected displayed licence 2021-04-16 14:20:47 +03:00
Evgeny Grin (Karlson2k) b6a3e50b78 mhd_send: use run-time value of IOV_MAX if available 2021-04-16 14:20:47 +03:00
Evgeny Grin (Karlson2k) a1371a29ec init refactoring: always call MHD_send_init_static_vars_() 2021-04-16 14:20:46 +03:00
Christian Grothoff 6c751386a2 fix #6768: do not use TCP-specific syscalls on UNIX domain sockets (merge) 2021-04-16 10:26:20 +02:00
Evgeny Grin (Karlson2k) fadba1133c fix #6768: do not use TCP-specific syscalls on UNIX domain sockets 2021-04-16 10:25:37 +02:00
Evgeny Grin (Karlson2k) c556a538a9 configure: fixed '--enable-sanitizer'
Due to typo, using '--enable-sanitizer' resulted in lost of LDFLAGS
2021-04-15 18:58:58 +03:00
Evgeny Grin (Karlson2k) ddf368bb6d mhd_send: do not push incomplete responses with vector send 2021-04-15 12:43:01 +03:00
Evgeny Grin (Karlson2k) 7762278bd1 mhd_send: use sendmsg() in POSIX-compatible way
Some OSes may have limit on number of maximum elements per single
call of sendmsg()/writev(). Do not try to send more elements than
allowed by OS.
2021-04-14 22:21:32 +03:00
Evgeny Grin (Karlson2k) 726b9c4731 test_upgrade_large: fixed data race 2021-04-14 19:44:40 +03:00
Evgeny Grin (Karlson2k) 9ce7aa953a Style and shadowing fixes 2021-04-13 20:42:49 +03:00
Evgeny Grin (Karlson2k) 2704ce9895 connection_https: disabled back TCP_NODELAY optimisation 2021-04-11 15:51:28 +03:00
Evgeny Grin (Karlson2k) 7d5e06ed5f Updated test certificates
Updated TLS test certificates with modern algorithms and correct
alternative names, which is closer to real live scenarios.
Examples programs work with browsers again.
2021-04-11 12:38:48 +03:00
Evgeny Grin (Karlson2k) 6507a4bf38 response.c: fixed compiler warning on W32 2021-04-11 12:38:47 +03:00
Evgeny Grin (Karlson2k) 8a7c20f792 Added missing '_MHD_EXTERN' to MHD_run_wait() 2021-04-11 12:38:47 +03:00
Evgeny Grin (Karlson2k) 255e71aa81 ChangeLog updated 2021-04-11 12:38:47 +03:00
Evgeny Grin (Karlson2k) e3d7574acc ax_have_epoll: speed-up detection 2021-04-01 21:33:48 +03:00
Evgeny Grin (Karlson2k) 05cd7f037c digestauth.c: trust configure detection of variable length arrays 2021-04-01 21:33:48 +03:00
Evgeny Grin (Karlson2k) 81beb04105 websocket_threaded_example: muted compiler warning 2021-04-01 21:33:47 +03:00
Evgeny Grin (Karlson2k) 93291187f4 configure: assume that systems assert() is functional if available 2021-04-01 21:33:47 +03:00
Evgeny Grin (Karlson2k) 9826b05efe testzzuf: test thoroughly if heavy tests are enabled 2021-04-01 21:33:46 +03:00
Evgeny Grin (Karlson2k) afbcfc122d test_add_conn: muted compiler warning 2021-04-01 21:33:46 +03:00
Evgeny Grin (Karlson2k) d27d2b3857 test_get_iovec: fixed compiler warning 2021-04-01 21:33:46 +03:00
Evgeny Grin (Karlson2k) fb9100e3e7 connection.c: mute compiler warning 2021-04-01 21:33:45 +03:00
Evgeny Grin (Karlson2k) 876be04353 digestauth: fixed compiler warning 2021-04-01 21:33:45 +03:00
Evgeny Grin (Karlson2k) a25f48dafc digestauth: do not use size of buffer as size of digest
Without variable size arrays, size of the buffer is constant and doesn't
match size of the digest.
This fixes MD5 digest support currently broken on compilers without
variable size array support (Visual C).
2021-04-01 21:33:44 +03:00
Evgeny Grin (Karlson2k) bf25ee3a32 Implemented new API function MHD_run_wait(). 2021-04-01 17:52:08 +03:00
Evgeny Grin (Karlson2k) fcca12c270 ChangeLog updated. 2021-03-27 15:47:15 +03:00
Evgeny Grin (Karlson2k) 2e40251a93 Added MHD_OPTION_SIGPIPE_HANDLED_BY_APP option 2021-03-17 21:00:14 +03:00
Evgeny Grin (Karlson2k) d71df0f08b microhttpd.h: added notes about minimal MHD version for some symbols 2021-03-17 19:23:36 +03:00
Evgeny Grin (Karlson2k) e07c332cea MHD_start_daemon(): warn if messages could be printed by wrong logger
If MHD_OPTION_EXTERNAL_LOGGER is specified and not used in the first
position then some messages could be printed by standard MHD logger
before this option is processed. Warn about this situation.
2021-03-15 16:35:07 +03:00