beast: http socket timeout / keepalive
Hi, I want to establish a http socket connection for longer times. That’s why I set the
req.keep_alive(true)
flag of the …
http::request<http::empty_body> req;
…Object. Sadly I still experience timeouts (end of stream error 1) after about 1:30 min. So what is the intended way to keep the connection alive? Is there a ping/pong mechanism I have to use?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15
Expressed as a “traditional” chain of continuations:
Something like this: