azadkuh / qhttp

a light-weight and asynchronous HTTP library (both server & client) in Qt5 and c++14
MIT License
484 stars 158 forks source link

"Saved Reply" is not working #39

Open pPanda-beta opened 7 years ago

pPanda-beta commented 7 years ago

Basically for server side events and other notification to the browser I'm using "infinite timeout ajax request s" but unfortunately with qhttp its not working. I am storing qhttp::server::QHttpResponse * in a suitable data structure but end() function is called on it aka the socket is getting closed the server is not accepting other requests. Only when a particular QHttpConnection is getting deleted then only the next one is getting created! But I need to store them and write response data only when I have some notification to send to client.