aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-10-29 19:50:58 +0000
committerChristian Grothoff <christian@grothoff.org>2014-10-29 19:50:58 +0000
commitfd9472386333a7d2a2a7c298641b64167f3598ac (patch)
treeeedb34415ec4397a2c29380ce2a2d438a4375689 /ChangeLog
parentcde3691e85724707c55d776fad3e93454eaf24d1 (diff)
downloadlibmicrohttpd-fd9472386333a7d2a2a7c298641b64167f3598ac.tar.gz
libmicrohttpd-fd9472386333a7d2a2a7c298641b64167f3598ac.zip
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index afbef967..e4af5f12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
1Wed Oct 29 20:45:21 CET 2014
2 Adding MHD_OPTION_LISTENING_ADDRESS_REUSE option allowing clients
3 to force allowing re-use of the address:port combination
4 (SO_REUSEPORT). -MS
5
1Wed Oct 29 16:27:05 CET 2014 6Wed Oct 29 16:27:05 CET 2014
2 Adding MHD_DAEMON_INFO_CURRENT_CONNECTIONS to allow clients 7 Adding MHD_DAEMON_INFO_CURRENT_CONNECTIONS to allow clients
3 to query the number of active connections. -MS 8 to query the number of active connections. -MS