I use this function in winhttp.c to improve windows http server performance.

see my attachment.

Have a fun!