|
From: | silvioprog |
Subject: | Re: [libmicrohttpd] Why MHD latency is so high on Windows? |
Date: | Wed, 18 Nov 2015 13:27:39 -0300 |
Hi!libmicrohttpd was ported to use Windows API directly, so PlibC wrapper is not used anymore.
According to MSDN docs there is no TCP_FASTOPEN flag on Windows: https://msdn.microsoft.com/ru-ru/library/windows/desktop/ms738596(v=vs.85).aspxIt also not present in any header file from VS 2010, 2012, 2013, 2015 and in MinGW-w64 headers.How did you compile MHD?
MHD currently has no cmake files. Only autotools files for build on Linux/Unix/Darwin/MinGW/Cygwin and Visual Studio 2013 project for Windows builds.
If you just add "#define TCP_FASTOPEN 1" to some header, this misled MHD. On Win32 option TCP_NODELAY has value of 1. So instead of enabling TCP_FASTOPEN, you forced MHD to disable Nagle's algorithm (disabling is not recommend according to MSDN).
[Prev in Thread] | Current Thread | [Next in Thread] |