forked from boostorg/beast
Tidying and fixes
This commit is contained in:
1 parent
fc7b47fc5d
commit
79c777e776
7 files changed
+19
-13
No files matched your search
@@ -93,22 +93,21 @@ struct stream<NextLayer, deflateSupported>::impl_type
|
||||
saved_handler op_r_close; // paused close op (async read)
|
||||
|
||||
bool secure_prng_ = true;
|
||||
|
||||
bool ec_delivered = false;
|
||||
bool timed_out = false;
|
||||
int idle_counter = 0;
|
||||
|
||||
// settings
|
||||
|
||||
timeout timeout_opt;
|
||||
|
||||
//
|
||||
|
||||
template<class... Args>
|
||||
impl_type(Args&&... args)
|
||||
: stream(std::forward<Args>(args)...)
|
||||
, timer(stream.get_executor().context())
|
||||
{
|
||||
timeout_opt.handshake_timeout = none();
|
||||
timeout_opt.idle_timeout = none();
|
||||
timeout_opt.keep_alive_pings = false;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -64,11 +64,11 @@ struct stream_base
|
||||
amount of time, the operation will be canceled and a
|
||||
timeout error delivered to the completion handler.
|
||||
*/
|
||||
duration handshake_timeout = none();
|
||||
duration handshake_timeout;
|
||||
|
||||
/** The time limit after which a connection is considered idle.
|
||||
*/
|
||||
duration idle_timeout = none();
|
||||
duration idle_timeout;
|
||||
|
||||
/** Automatic ping setting.
|
||||
|
||||
@@ -86,7 +86,7 @@ struct stream_base
|
||||
An outstanding read operation must be pending, which will
|
||||
complete immediately the error @ref beast::error::timeout.
|
||||
*/
|
||||
bool keep_alive_pings = false;
|
||||
bool keep_alive_pings;
|
||||
};
|
||||
|
||||
/** Construct timeout settings with suggested values for a role.
|
||||
@@ -103,7 +103,7 @@ struct stream_base
|
||||
timeout
|
||||
suggested_settings(role_type role) noexcept
|
||||
{
|
||||
timeout opt;
|
||||
timeout opt{};
|
||||
switch(role)
|
||||
{
|
||||
case role_type::client:
|
||||
|
||||
Reference in new issue
Block a user