Christian Grothoff
fd94723863
Hi Christian,
...
I attach the first attempt on SO_REUSEPORT. The patch is available
either at https://github.com/foxik/libmicrohttpd/commit/9ce9422742e10458f87275ea202a982e00c2b88c
or attached. (It is against the version with
MHD_DAEMON_OPTION_CURRENT_CONNECTIONS, but I can rebase it to current
SVN HEAD if you want.)
It seems that a reasonably multiplatform way of detecting SO_REUSEPORT is
#ifdef SO_REPOSEPORT
which is used for example by Perl. For SO_EXCLUSIVEADDRUSE, the same
strategy seems to work too, according to Windows SDK headers and MinGW
WinAPI headers.
The current patch adds an option to allowing/disallowing address:port
reuse. One remark:
- currently both nonexisting SO_xxx and setsockopt failure are fatal and
MHD_start_daemon fails. That may be too harsh -- maybe the
MHD_OPTION_LISTENING_ADDRESS_REUSE should be only a hint.
Nevertheless, as one can freely not use
MHD_OPTION_LISTENING_ADDRESS_REUSE option, I chose the "fail on error"
behaviour.
Thanks,
cheers,
Milan Straka
Original patch modified to get rid of some redundant USE_DEBUG
checks, fix indentation, and #ifndef SO_REUSEPORT on Linux,
we try be #defining it to 15 ourselves.
2014-10-29 19:50:58 +00:00
Christian Grothoff
d50980a765
From: Milan Straka <fox@ucw.cz>
...
Date: Wed, 29 Oct 2014 09:59:09 +0100
Subject: [PATCH 2/2] Add MHD_DAEMON_INFO_CURRENT_CONNECTIONS to
MHD_DaemonInfoType.
The MHD_DAEMON_INFO_CURRENT_CONNECTIONS returns number of current
connections handled by the daemon.
Useful after MHD_quiesce_daemon to find out whether all connections
have been served.
2014-10-29 15:29:31 +00:00
Sree Harsha Totakura
c94103be0f
Mention the timeout as milliseconds.
2014-08-05 13:17:57 +00:00
Christian Grothoff
ea8bac4745
adding MHD_set_response_options function
2014-06-08 13:11:50 +00:00
Christian Grothoff
c94a82388f
improve documentation for key-value iterator
2014-04-24 19:41:30 +00:00
Christian Grothoff
c34947db86
-correct documentation
2014-04-14 17:55:32 +00:00
Christian Grothoff
ca3a7d621c
add MHD_OPTION_HTTPS_MEM_DHPARAMS to support PFS
2014-04-07 11:27:18 +00:00
Sree Harsha Totakura
bc1137bd60
Add support for TCP FASTOPEN connections.
2014-02-24 16:25:43 +00:00
Christian Grothoff
3a1fd3476c
-ensure texinfo is always happy
2014-02-19 06:22:45 +00:00
Evgeny Grin (Karlson2k)
a9474fdab2
Remove plibc leftover, update ChangeLog and docs
2014-02-18 20:05:14 +00:00
Christian Grothoff
97831dfd63
-update doxygen rules
2014-02-18 18:57:32 +00:00
Evgeny Grin (Karlson2k)
41e5c4888a
Remove PlibC from autotools files
2014-02-18 18:40:50 +00:00
Christian Grothoff
e657e19644
Karlson2k: fix AM_CPPFLAGS vs AM_CFLAGS usage
2014-02-18 07:09:20 +00:00
Christian Grothoff
9889fd9eee
add support for SNI
2013-12-21 16:28:54 +00:00
Christian Grothoff
fe6f6a8589
-sadly, this freaks out automake badly
2013-12-11 19:40:20 +00:00
Christian Grothoff
2aa75f592d
-check for makeinfo
2013-12-10 13:04:15 +00:00
Christian Grothoff
04ca76e78e
Adding Matt Holiday's fixes to suspend/resume logic
...
(plus documentation updates).
2013-12-03 20:11:34 +00:00
Christian Grothoff
802d528bad
-fix warnings in manual build
2013-11-04 12:53:34 +00:00
Christian Grothoff
8e6b1e7899
experimental code to support flow control for connections via MHD_suspend_connection and MHD_resume_connection
2013-10-24 08:41:04 +00:00
Christian Grothoff
017c372418
also pass MHD connection handle in URI callback, needed for GNUnet
2013-09-17 19:33:20 +00:00
Christian Grothoff
b6151e98ce
-doxygen fixes
2013-09-07 20:28:28 +00:00
Christian Grothoff
ea226bb155
-xdist
2013-08-23 17:20:54 +00:00
Christian Grothoff
2c7bc3e0cb
-fix
2013-08-23 17:17:05 +00:00
Christian Grothoff
404892a3b6
-more doxygen improvements
2013-08-22 07:01:16 +00:00
Christian Grothoff
4f6aa30eb0
-more doxygen improvements
2013-08-22 06:16:06 +00:00
Christian Grothoff
a50a5626c0
document #2983
2013-08-12 21:56:49 +00:00
Christian Grothoff
9569a609ed
-document select/shutdown issue on W32, move z/os documentation into manual
2013-08-12 21:51:47 +00:00
LRN
d7a2fdc595
Don't redefine asprintf for MinGW-w64
2013-08-11 10:30:52 +00:00
Christian Grothoff
22941cd1b6
-fix reactivating plibc
2013-08-07 22:05:53 +00:00
Christian Grothoff
4251a1cd97
Part 1 of 2 - Remove PlibC from autotools files.
2013-08-07 06:22:16 +00:00
Christian Grothoff
81464b301a
Removes the requirement of liberty. No longer shipped by newer gcc.
2013-08-07 06:20:13 +00:00
Christian Grothoff
fe9c559603
-yes, we never ignore return values, even in examples on getchar()...
2013-07-21 16:19:41 +00:00
Christian Grothoff
6e07994a8b
-fixing #2899 : allow clients to customize MHD_BUF_INC_SIZE via option
2013-07-05 10:12:10 +00:00
Christian Grothoff
79f2eea262
-documentation updates for epoll
2013-06-25 13:13:46 +00:00
Christian Grothoff
2c646f956f
-nicer error handling in example
2013-06-25 13:00:17 +00:00
Christian Grothoff
7c78413efa
-make clear that close return value is ignored intentionally
2013-06-25 12:58:12 +00:00
Christian Grothoff
e55a1f921e
-update list of documentation
2013-06-25 12:47:41 +00:00
Christian Grothoff
14dad00f46
cast intentionally ignored return values to void, even in examples
2013-06-21 17:55:34 +00:00
Christian Grothoff
ebebe460d2
-move spdy draft so that testcases can find it
2013-05-24 08:50:24 +00:00
Christian Grothoff
cfea15fe53
-fix 2886
2013-05-20 10:30:32 +00:00
Christian Grothoff
f4a4a70d43
-remove generated files
2013-05-19 09:31:16 +00:00
Christian Grothoff
cc8a80bf84
-fix build issues on MinGW ( #2885 )
2013-05-18 20:33:10 +00:00
Christian Grothoff
639c6a9880
merging libmicrospdy into tree
2013-05-05 19:21:40 +00:00
Christian Grothoff
7f193935fa
releasing 0.9.27
2013-05-05 18:25:32 +00:00
Christian Grothoff
1725bcf3c5
-improvements to docs
2013-05-05 18:01:09 +00:00
Christian Grothoff
888e39055f
adding support for quiesce
2013-04-26 09:00:01 +00:00
LRN
aeaea9eda2
W32 compatibility, also use ISO C instead of POSIX
2013-04-23 11:38:09 +00:00
Christian Grothoff
9f01e17e57
-make sure to include license texi files
2013-04-05 11:46:23 +00:00
Christian Grothoff
39affe6c56
adding MHD_run_from_select to API
2013-03-31 18:28:43 +00:00
Christian Grothoff
b0fcfe2b6e
document sizes better
2013-03-31 18:03:48 +00:00