mirror of
https://github.com/boostorg/beast.git
synced 2025-08-03 06:44:39 +02:00
Fix websocket keep-alive ping expiration
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
Version 244:
|
||||
|
||||
* Tidy up declval in some traits
|
||||
* Fix websocket keep-alive ping expiration
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
@@ -424,8 +424,12 @@ struct stream<NextLayer, deflateSupported>::impl_type
|
||||
if(timeout_opt.idle_timeout != none())
|
||||
{
|
||||
idle_counter = 0;
|
||||
timer.expires_after(
|
||||
timeout_opt.idle_timeout);
|
||||
if(timeout_opt.keep_alive_pings)
|
||||
timer.expires_after(
|
||||
timeout_opt.idle_timeout / 2);
|
||||
else
|
||||
timer.expires_after(
|
||||
timeout_opt.idle_timeout);
|
||||
timer.async_wait(
|
||||
timeout_handler<Executor>(
|
||||
ex, this->weak_from_this()));
|
||||
|
Reference in New Issue
Block a user