Re: [libmicrohttpd] Why MHD latency is so high on Windows?

2015-11-16 Thread silvioprog
Oops, I forgot the log: Status 200 OK Loading time: 249ms Connection: Keep-Alive Content-Length: 37 Content-Type: text/html Date: Sun, 15 Nov 2015 18:11:02 GMT This log was done by Google Chrome Advanced REST Client:

[libmicrohttpd] Why MHD latency is so high on Windows?

2015-11-16 Thread silvioprog
Hello, I'm using MHD in production, so I noticed a small problem in a customer: the MHD latency is very high. It is about 250ms. (Apache24 - 15ms; Nginx - 2ms; NodeJS - 5ms; Jetty - 5ms; libevent - 3ms) You can't reproduce it testing in localhost, so you need two machines. If you want to test

Re: [libmicrohttpd] Small upgrade for MHD home page

2015-11-16 Thread silvioprog
Hm... about Windows package, the problem is just to keep an old version on home page, because there is the first place that an user find the lib, and this very old version miss a lot of important fixes. :-/ I have two sugestions to distribute the Windows package on home page: 1. keep only the

Re: [libmicrohttpd] Why MHD latency is so high on Windows?

2015-11-16 Thread Nils Durner
Hi Silvio, it's been a while since I have looked at the code last, but we used to have an event loop in the Windows implementation of select() (in PlibC) that switches between waiting on sockets and waiting on other handles (specifically, a shutdown signalling pipe handle) every 200ms. Just to