Skip to content

Commit

Permalink
Update documentation to match changes in PR #2718
Browse files Browse the repository at this point in the history
  • Loading branch information
xim committed Nov 27, 2023
1 parent d0b5e50 commit 7c6d9a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/qbk/06_websocket/06_timeouts.qbk
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ There are three timeout settings which may be set independently on the stream:
[[link beast.ref.boost__beast__websocket__stream_base__timeout.idle_timeout `timeout::idle_timeout`]]
[`duration`]
[
If no data is received from the peer for a time equal to the idle
timeout, then the connection will time out.
If no data or control frames are received from the peer for a time
equal to the idle timeout, then the connection will time out.
The value returned by
[link beast.ref.boost__beast__websocket__stream_base.none `stream_base::none()`]
may be assigned to disable this timeout.
Expand Down
6 changes: 4 additions & 2 deletions include/boost/beast/websocket/stream_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ struct stream_base
An outstanding read operation must be pending, which will
complete immediately the error @ref beast::error::timeout.
@li When `keep_alive_pings` is `false`, the connection will be closed.
An outstanding read operation must be pending, which will
@li When `keep_alive_pings` is `false`, the connection will
be closed if there has been no activity. Both websocket
message frames and control frames count as activity. An
outstanding read operation must be pending, which will
complete immediately the error @ref beast::error::timeout.
*/
bool keep_alive_pings;
Expand Down

0 comments on commit 7c6d9a1

Please sign in to comment.