Richard Hodges

Results 213 comments of Richard Hodges

I agree. I think we should accept this PR.

Is it possible to squash all the commits that relate to cancelation?

You can either intersperse each invocation of `async_read_some` with a delay based on how much data was read since the last read, or you can write your own `rate_limited_stream` type...

Couple of ways, depending big on whether you’re looking to have a hard cap on bit rate or want to have a constant average bit rate.

definitely don't use beast::tcp_stream's internal timeout with websocket. As I read it, your `t.async_wait(...)` code won't execute until after the async_read has completed, because you are yielding the coroutine. It...

Don't copy your company's code. Write a new, very small, program which demonstrates the principle of what you want to achieve. This is a websocket read with a timeout, yes?

``` /// The type representing the reason string in a close frame. using reason_string = static_string; /// The type representing the payload of ping and pong messages. using ping_data =...

CloseHandler is an asio-style completion handler or completion token. Just like any other asio async operation.