supamii / QttpServer

Build your API with C++ - Powered by Qt and Node's libuv
https://supamii.github.io/qttpserver/
MIT License
103 stars 35 forks source link

keep-alive does not work #29

Open thepinkmile opened 7 years ago

thepinkmile commented 7 years ago

I have built the example projects and when using Postman to test the end-points it fails for every other request. After digging down it seems that connections are not being kept alive.

jieinchina commented 7 years ago

i'm running this issue too :(

izzyonstage commented 7 years ago

My current fix is to always add "Connection: close" to all responses to effectively disable keep-alive. If anyone knows roughly where this functionality resides in the source I will try to debug further and make a fix (over weekend maybe).