Evgeny Grin (Karlson2k)
cf295a42e2
Silent compiler warning
2016-04-10 09:42:35 +00:00
Evgeny Grin (Karlson2k)
ed74ec9db8
Releasing 0.9.49
2016-04-09 13:08:05 +00:00
Christian Grothoff
94c0fd7183
one variable per line
2016-04-08 19:04:01 +00:00
Evgeny Grin (Karlson2k)
085bc84505
Reworked calling shutdown() on connections:
...
Now called on all platforms (including W32), called only with SHUT_WR,
except in close_all_connections() where shutdown() called with SHUT_RDWR.
This should increase chances of graceful disconnection.
2016-04-08 18:40:58 +00:00
Evgeny Grin (Karlson2k)
1057677e86
connection.c: remove unneeded check in try_ready_normal_body()
2016-04-08 16:31:10 +00:00
Evgeny Grin (Karlson2k)
1476b01284
platform_interface.h: fix possible NULL pointer dereference on Win32
2016-04-08 16:31:08 +00:00
Evgeny Grin (Karlson2k)
1226d45eba
Check result of snprintf() in basicauth.c and digestauth.c, log more errors
2016-04-08 16:31:05 +00:00
Evgeny Grin (Karlson2k)
6096c8a88e
daemon.c: remove unused variable in MHD_handle_connection()
2016-04-08 16:31:03 +00:00
Evgeny Grin (Karlson2k)
6ec74bd8eb
connection.c: fix using uninitialized variable in build_header_response()
2016-04-08 16:31:00 +00:00
Christian Grothoff
65f91e3293
fix #4233
2016-04-02 23:05:53 +00:00
Christian Grothoff
1e9240c3e0
fix #4235
2016-04-02 23:03:06 +00:00
Evgeny Grin (Karlson2k)
e198febcf8
Fix testsuite compiler warnings on W32
2016-03-26 00:38:26 +00:00
Christian Grothoff
c39414cdc7
Dan Dedrick wrote:
...
If pthread_create fails for some reason we need to not access the
thread pointer as it will not be valid. Without this check a failed
return code from pthread_create would cause a SIGSEGV to occur.
An instance that pthread_create could fail is if enough connections were
established that we ran out of space in our mapping to create another
thread stack. Specifically I have seen this occur with
systemd-journal-gatewayd where there was a bug with not releasing
connections after they had disconnected. I submitted a fix for that
here: https://github.com/systemd/systemd/pull/2287 but it would really
be best if libmicrohttpd didn't SIGSEGV under these conditions.
2016-03-15 20:54:16 +00:00
Christian Grothoff
c932ba77fd
fix unnecessary and potentially problematic use of eready DLL in thread-per-connection mode
2016-03-15 19:31:42 +00:00
Christian Grothoff
d3b17d3b19
-Fabian Mewes:
...
Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()
Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()
2016-02-29 12:27:57 +00:00
Christian Grothoff
601164fa35
-fix as suggested by EG
2016-02-22 13:56:26 +00:00
Christian Grothoff
dcde217787
-missunderstanding test...
2016-02-22 09:34:46 +00:00
Christian Grothoff
8eb1cd31f5
-these tests should pass even if we do not have listen-shutdown
2016-02-22 09:32:30 +00:00
Christian Grothoff
8d83647523
-check for versions, report tests as skipped if versions missmatch
2016-02-20 12:30:43 +00:00
Christian Grothoff
a624909415
be more forceful about stopping test clients
2016-02-20 12:16:40 +00:00
Evgeny Grin (Karlson2k)
6bda5e7fa7
Added more detailed description for test_shutdown_select.c
2016-02-19 15:32:37 +00:00
Evgeny Grin (Karlson2k)
e500b2830d
Really fixed Makefile for poll test
2016-02-06 10:37:44 +00:00
Evgeny Grin (Karlson2k)
25da66197c
fixed Makefile for poll test
2016-02-05 21:25:12 +00:00
Evgeny Grin (Karlson2k)
96010724e3
Added test for checking ability of shutdown() on socket to trigger poll()
2016-02-05 20:47:58 +00:00
Evgeny Grin (Karlson2k)
bc162a8e85
Fixed test compilation warnings for native W32 x64
2016-02-05 20:47:54 +00:00
Christian Grothoff
868e81cb3d
bracket correctly
2016-02-05 17:27:39 +00:00
Evgeny Grin (Karlson2k)
b1625cb1af
Faster drain pipes.
2016-02-05 13:15:18 +00:00
Evgeny Grin (Karlson2k)
51aba3944b
Fixed MHD_pipe_drain_ with emulated pipes
2016-02-05 13:15:14 +00:00
Evgeny Grin (Karlson2k)
101e71a8cf
Added some buffer overrun protection, fixed handling of misformed URI with spaces.
2016-02-04 11:44:04 +00:00
Christian Grothoff
b2a05d373c
trying to fix full signal pipe issue reported on ML
2016-02-03 14:43:27 +00:00
Evgeny Grin (Karlson2k)
6767963266
Fix running select() on W32 with empty fdsets - W32 return error if no socket is marked in fdsets.
2016-01-30 15:57:42 +00:00
Christian Grothoff
a3bfa8a2d6
applying cosmetics patch #4137
2016-01-28 06:06:50 +00:00
Evgeny Grin (Karlson2k)
d5fddd30e1
Reverting serial-tests for now as it not compatible with older automake version used for automated testing.
2016-01-25 14:26:11 +00:00
Evgeny Grin (Karlson2k)
22392ce602
Added test for checking ability of shutdown() on socket to trigger select()
2016-01-25 14:17:43 +00:00
Christian Grothoff
3baed95b7d
current zzuf no longer needs, and no longer supports '--'
2016-01-23 13:47:22 +00:00
Christian Grothoff
b429ae31a2
-check rval
2016-01-23 13:09:48 +00:00
Christian Grothoff
bb93b2b5c2
-avoid theoretical issue with error_count overflowing depending on libcurl errnos
2016-01-23 13:08:27 +00:00
Evgeny Grin (Karlson2k)
f37d75d1f9
configure.ac: specify serial tests for automake
2016-01-21 20:32:21 +00:00
Evgeny Grin (Karlson2k)
1e11762d5f
Reworked code for using accept4(), epoll_create1() and socket() with SOCK_CLOEXEC, SOCK_NONBLOCK and EPOLL_CLOEXEC. On some systems SOCK_CLOEXEC, SOCK_NONBLOCK and EPOLL_CLOEXEC are defined as enum members with the same names so precompiler assume zero value of such macros.
2016-01-21 19:53:45 +00:00
Evgeny Grin (Karlson2k)
dcebe56be1
Fixed making sockets non-blocking.
2016-01-21 17:37:41 +00:00
Evgeny Grin (Karlson2k)
3959a99922
daemon.c: refactored code making sockets non-blocking and non-inheritable: cleaned up, clarified and little bit optimized.
2016-01-19 21:18:25 +00:00
Evgeny Grin (Karlson2k)
b3be57e5a5
Remove workaround for Cygwin and use non-blocking sockets everywhere.
...
Tested on Cygwin 1.7.28 and 2.4.0 x86/x86_64.
2016-01-19 11:21:02 +00:00
Christian Grothoff
f34f90622a
update Changelog
2016-01-18 22:56:50 +00:00
Christian Grothoff
9363e91e94
fixing another one of the open/stat clones
2016-01-18 22:14:09 +00:00
Christian Grothoff
a0f69a6671
-fixes in code clones()
2016-01-18 21:46:56 +00:00
Christian Grothoff
ff4d6dea42
-fclose file, even if fileno failed...
2016-01-18 21:42:33 +00:00
Christian Grothoff
979e499936
-check rval before fstat'ing
2016-01-18 21:41:49 +00:00
Christian Grothoff
d9da87668f
-fclose file, even if fileno failed...
2016-01-18 21:39:09 +00:00
Christian Grothoff
d22012f34d
-indenting
2016-01-18 21:09:06 +00:00
Christian Grothoff
2aa0b2234d
add redundant length check to make static checkers happy and to avoid trouble in the future
2016-01-18 20:56:34 +00:00