Evgeny Grin (Karlson2k)
f588bc469e
Bumped MHD_VERSION and updated ChangeLog.
2016-08-23 20:13:35 +00:00
Evgeny Grin (Karlson2k)
47bfec25d8
Moved generic emulated functions to mhd_compat.h/.c, removed "platform" dir,
...
removed "w32functions.h/.c"
2016-08-23 20:13:03 +00:00
Evgeny Grin (Karlson2k)
558572ec73
Moved pipe/socketpair to separate mhd_itc.h/.c files.
2016-08-23 20:12:56 +00:00
Evgeny Grin (Karlson2k)
50bbf74d4e
Moved sockets abstraction to specialized mhd_socket.h/.c files
2016-08-23 20:12:50 +00:00
Christian Grothoff
e1257548da
fixing crash bug, connection-limit bug and documenting connection-limit behavior better
2016-08-15 11:13:50 +00:00
Evgeny Grin (Karlson2k)
5957e145cb
Updated ChangeLog, bump build version
2016-08-10 13:52:54 +00:00
Evgeny Grin (Karlson2k)
40b07cc645
Moved locks and mutex abstraction to mhd_locks.h
...
Minor refactoring to allow better code optimization.
2016-08-10 13:52:51 +00:00
Evgeny Grin (Karlson2k)
a7029c10cc
configure.ac: added --disable-thread-names parameter
2016-08-10 13:52:47 +00:00
Evgeny Grin (Karlson2k)
e18185c55f
Moved thread abstraction to mhd_threads.h/mhd_threads.c,
...
minor bugs fixed.
2016-08-10 13:52:38 +00:00
Evgeny Grin (Karlson2k)
4d0d4701c6
Updated ChangeLog and bump MHD_VERSION
2016-07-23 18:55:18 +00:00
Evgeny Grin (Karlson2k)
43bb6196b0
Added MHD_FAVOR_FAST_CODE and MHD_FAVOR_SMALL_CODE automatic macros.
...
Macros can be forced by external define.
Added versions of mhd_str functions for smaller resulting code.
2016-07-23 18:55:09 +00:00
Evgeny Grin (Karlson2k)
e47a4a62be
Added new header mhd_options.h
2016-07-23 18:55:02 +00:00
Christian Grothoff
dcc7066746
print warning if application code performing connection POST processing is buggy
2016-07-16 19:56:26 +00:00
Christian Grothoff
0bfe068c10
support 308
2016-07-08 13:59:36 +00:00
Christian Grothoff
69b9aa6513
-fix ftbfs
2016-06-02 09:25:39 +00:00
Christian Grothoff
3d0516f447
do not generate Content-Length header for 1xx/204/304 replies, also suppress transmission of message body in these cases
2016-06-01 20:02:30 +00:00
Christian Grothoff
b8a5c8d0ec
-bump
2016-05-17 11:38:09 +00:00
Christian Grothoff
8a4e48c6f4
add MHD_CONNECTION_INFO_CONNECTION_SUSPENDED
2016-05-17 11:37:54 +00:00
Christian Grothoff
de6e50d00e
handle EMFILE, ENFILE, ENOBUF on accept
2016-05-15 10:20:04 +00:00
Christian Grothoff
84ec6a79ca
adding logic to do 'fast' calls to read/write on a single connection without going back to the main event loop to help FE with his performance issue
2016-05-02 04:13:06 +00:00
Evgeny Grin (Karlson2k)
ed74ec9db8
Releasing 0.9.49
2016-04-09 13:08:05 +00:00
Evgeny Grin (Karlson2k)
1476b01284
platform_interface.h: fix possible NULL pointer dereference on Win32
2016-04-08 16:31:08 +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
601164fa35
-fix as suggested by EG
2016-02-22 13:56:26 +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
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)
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)
56810e175c
microhttpd.h: A little bit clarified deprecation macros.
2016-01-16 17:10:49 +00:00
Evgeny Grin (Karlson2k)
bca0b80070
microhttpd.h: fixed declaration of MHD_get_reason_phrase_for()
2016-01-12 16:15:24 +00:00
Christian Grothoff
f0b2df0912
-dox
2016-01-05 12:36:47 +00:00
Christian Grothoff
5baba378c2
releasing 0.9.48
2015-12-18 14:56:04 +00:00
Evgeny Grin (Karlson2k)
93486b2cc1
Fixed comments in microhttpd.h
2015-12-12 14:18:02 +00:00
Evgeny Grin (Karlson2k)
9403196ad0
Change default listen backlog size from 32 to SOMAXCONN, allow to specify required listen backlog size
2015-12-08 20:48:44 +00:00
Evgeny Grin (Karlson2k)
90f4046de0
Use real system default value of FD_SETSIZE instead of guessing
2015-12-08 10:59:54 +00:00
Evgeny Grin (Karlson2k)
6cf9fb3719
Handle redefined FD_SETSIZE and really redefine FD_SETSIZE for W32
2015-12-07 20:51:11 +00:00
Christian Grothoff
dbf115059a
-bump
2015-12-05 16:34:10 +00:00
Christian Grothoff
c4448622ca
releasing 0.9.47
2015-12-04 13:06:18 +00:00
Evgeny Grin (Karlson2k)
df596a5a47
Added comments for deprecation macros in microhttpd.h
2015-12-04 10:52:38 +00:00
Evgeny Grin (Karlson2k)
2515991a17
Updated ChangeLog and bumped MHD_VERSION
2015-12-03 18:31:29 +00:00
Evgeny Grin (Karlson2k)
c23721b4ca
connection.c: refactor get_date_string() for clarity, distinguish
...
different gmtime_s() forms, support C11 gmtime_s()
2015-12-03 11:53:15 +00:00
Evgeny Grin (Karlson2k)
738ba14cc9
Add support for native snprintf() on W32.
2015-12-03 11:53:12 +00:00
Christian Grothoff
fdc3e17e30
killing libmicrospdy
2015-12-01 13:06:38 +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
Evgeny Grin (Karlson2k)
6e4a434cfc
Add and use _MHD_SOCKOPT_BOOL_TYPE for simplify usage of setsockopt() on W32/POSIX sockets.
2015-11-21 19:43:06 +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
3ed1e8de9f
-fix shrinkage
2015-11-06 21:56:46 +00:00