Evgeny Grin (Karlson2k)
1fe4a6c702
test_quiesce: do not violate our API
2016-04-23 16:16:03 +00:00
Evgeny Grin (Karlson2k)
32d09c8391
MHD_quiesce_daemon(): notify other threads so listen socket FD
...
is removed from awaiting select() and poll().
2016-04-23 16:15:58 +00:00
Evgeny Grin (Karlson2k)
b3903cffea
Revert "shutdown trigger select" on Darwin.
...
Fixed daemon shutdown on Darwin without "MHD_USE_PIPE_FOR_SHUTDOWN" option.
2016-04-23 16:15:55 +00:00
Evgeny Grin (Karlson2k)
366a260595
Fixed race conditions for thread pool.
2016-04-22 15:03:27 +00:00
Evgeny Grin (Karlson2k)
11dc6d06af
Updated test_post.c to not ignore specific error on W32 if libcurl
...
is built with workaround for WinSock bug.
2016-04-20 18:29:38 +00:00
Evgeny Grin (Karlson2k)
49e6153824
Fixed rare situations when suspended connection can't be resumed.
2016-04-18 19:43:58 +00:00
Evgeny Grin (Karlson2k)
f5393bb0dd
Fixed handling of caller-supplied socket with MHD_OPTION_LISTEN_SOCKET.
...
Was regression in 0.9.49.
2016-04-12 21:52:33 +00:00
Evgeny Grin (Karlson2k)
ed74ec9db8
Releasing 0.9.49
2016-04-09 13:08:05 +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
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
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)
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
Evgeny Grin (Karlson2k)
22392ce602
Added test for checking ability of shutdown() on socket to trigger select()
2016-01-25 14:17:43 +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)
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
Evgeny Grin (Karlson2k)
a0b1426077
Do not give up if sendfile() failed with EINVAL
2016-01-17 11:32:41 +00:00
Evgeny Grin (Karlson2k)
ad9b3c3814
Use only US-ASCII charset when comparing stings as caseless as required by standard.
...
Comparisons for HTTP headers must not be affected by locale settings.
2016-01-16 19:23:00 +00:00
Evgeny Grin (Karlson2k)
bca0b80070
microhttpd.h: fixed declaration of MHD_get_reason_phrase_for()
2016-01-12 16:15:24 +00:00
Evgeny Grin (Karlson2k)
4f7cfbe58e
configure.ac: cleanup and fixes related to optional features, corresponding changes in source files
2016-01-11 20:15:19 +00:00
Christian Grothoff
5baba378c2
releasing 0.9.48
2015-12-18 14:56:04 +00:00
Evgeny Grin (Karlson2k)
0074887f31
Updated ChangeLog
2015-12-16 17:43:13 +00:00
Christian Grothoff
9b083f8fbe
aggressively close sockets in multi-threaded operation
2015-12-05 16:31:45 +00:00
Christian Grothoff
c4448622ca
releasing 0.9.47
2015-12-04 13:06:18 +00:00
Evgeny Grin (Karlson2k)
2515991a17
Updated ChangeLog and bumped MHD_VERSION
2015-12-03 18:31:29 +00:00
Christian Grothoff
fdc3e17e30
killing libmicrospdy
2015-12-01 13:06:38 +00:00
Evgeny Grin (Karlson2k)
ac599c6f9c
ChangeLog formatting fixes
2015-12-01 10:19:37 +00:00
Evgeny Grin (Karlson2k)
e5a4e0234f
Eliminate delay of response on platforms where socket flushing is not possible,
...
send header to clients without delay on all platforms to allow clients to take
some action depending on header content, send "100 continue" without delay.
2015-12-01 10:19:34 +00:00
Evgeny Grin (Karlson2k)
602a14fb5d
Reduce last packet response delay observable with keep-alive on BSD and Darwin platforms
2015-11-25 18:45:22 +00:00
Christian Grothoff
70ca8aaaea
Hi folks,
...
I guess i found a problem with suspended connections. There is a
scenarion where one can resume a connection and then stop the daemon
without gives the daemon the oportunity to really resume the connection.
In this case, microhttpd will abort telling one that there is suspended
connection (because the connection is still in the daemon's suspended
list).
The following patch solves the problem (i've this problem using external
mainloop).
Regards,
Flavio Ceolin
2015-11-10 14:27:57 +00:00
Christian Grothoff
98f5ad2ccb
-bump
2015-11-09 07:53:47 +00:00
Christian Grothoff
ff55930170
typo
2015-11-09 06:10:05 +00:00
Christian Grothoff
3ed1e8de9f
-fix shrinkage
2015-11-06 21:56:46 +00:00
Christian Grothoff
77ffe1508f
-add patch from Eugenio Perez
2015-11-03 22:42:06 +00:00
Christian Grothoff
5f57331ea1
-fix by undoing part of 36568
2015-11-03 22:37:47 +00:00
Evgeny Grin (Karlson2k)
da7012adc9
Update deprecation macros for new GCC, better support old clang
2015-10-27 12:23:42 +00:00
Christian Grothoff
dc54cd092a
realize suggestion from FC on MHD list to improve MHD_get_connection_values() when used with a bitmask
2015-10-25 22:07:42 +00:00
Christian Grothoff
2a6eada873
-fix assertion failure from race on shutdown and buffer shrinkage with pipelining
2015-10-25 14:33:28 +00:00
Christian Grothoff
72f05a8364
deduplicate arg parsing logic between connection.c and digestauth.c (now in internal.c)
2015-10-05 10:06:13 +00:00
Christian Grothoff
dd749c2274
releasing 0.9.44
2015-10-01 19:27:08 +00:00
Evgeny Grin (Karlson2k)
1d9cca3b8f
Update ChangeLog
2015-09-30 21:08:04 +00:00
Christian Grothoff
f2bce4c656
fix digest auth when used with more complex arguments being passed to GET, i.e. keys without missing values at the beginning and certain other constellations
2015-09-25 07:51:21 +00:00
Christian Grothoff
94c16f349d
help systemd by not calling shutdown() on listen socket if MHD_USE_PIPE_FOR_SHUTDOWN is given
2015-09-22 17:21:33 +00:00
Christian Grothoff
316f6c4ef3
-releasing 0.9.43
2015-09-16 09:08:18 +00:00
Christian Grothoff
9e87c9a225
patch from FC to fix use of resume in combination with external select
2015-09-02 14:45:28 +00:00
Christian Grothoff
475b350b71
correct documentation as to when MHD_USE_EPOLL_LINUX_ONLY is allowed (previous formulation was wrong)
2015-08-30 12:55:04 +00:00