Skip to main content
1 vote
1 answer
92 views

I want to set up a watchdog that checks whether the io_context workers can pick up tasks within a reasonable time and are not stuck running long or blocking operations. To achieve this, I've ...
Zohar81's user avatar
  • 5,214
2 votes
1 answer
74 views

I have a Websocket class that connects asynchronously using Boost.Asio and Boost.Beast. The following code was working fine with Boost 1.78, but after updating to the latest Boost version, I now get a ...
Rutvik Parekh's user avatar
2 votes
1 answer
169 views

I am reading a http::request<http::string_body> request from the network using boost::beast, which is of type multipart/form-data. The request contains files and strings. How can I get each part ...
Joe J's user avatar
  • 1,349
3 votes
1 answer
101 views

I create http::response<string_body> and call prepare_payload() after the response is built like this http::response<http::string_body> res; res.version(11); res.result(http::status::ok); ...
Joe J's user avatar
  • 1,349
3 votes
1 answer
99 views

I have a websocket server where I call websocket::stream::async_accept to perform a handshake with the client. I also set a decorator to modify the headers like this conn->get_websocket_stream()....
Joe J's user avatar
  • 1,349
4 votes
1 answer
64 views

I create http::response_parser<http::buffer_body> and set header_limit and body_limit like this auto parser = std::make_shared<http::response_parser<http::buffer_body>>(); parser->...
Joe J's user avatar
  • 1,349
2 votes
1 answer
109 views

I have one active async operation, it is http::async_read. At the moment when I want to close the ssl connection, I cancel this async operation on the socket by calling ip::tcp::socket::cancel. Then I ...
Joe J's user avatar
  • 1,349
3 votes
1 answer
59 views

I have a response parser of type http::response_parser<http::buffer_body>, which I need to convert to a parser of type http::response_parser<http::string_body>. I do the conversion after ...
Joe J's user avatar
  • 1,349
2 votes
1 answer
119 views

I need to read the response from an HTTP server like this: first call boost::beast::http::async_read_header to get headers, then read the response body (if any). To read the body I use boost::beast::...
Joe J's user avatar
  • 1,349
0 votes
0 answers
77 views

The documentation for websocket::stream::async_close says: This function is used to asynchronously send a close frame, which begins the websocket closing handshake. The session ends when both ends of ...
Joe J's user avatar
  • 1,349
2 votes
1 answer
80 views

The boost documentation has me confused. The boost 1.68.0 documentation for websocket::stream::async_ping says: This operation is implemented in terms of one or more calls to the next layer's ...
Joe J's user avatar
  • 1,349
3 votes
1 answer
160 views

Let's say we have a websocket client based on boost::beast. At some point we want to send a ping frame to the server. To do this, boost::beast::websocket::stream offers two options: Use the ping ...
Joe J's user avatar
  • 1,349
3 votes
1 answer
152 views

When we write data to plain socket or ssl::stream, it is recommended to use message queue to send data. In this case, I store messages in queue of type std::queue<std::string> and generally use ...
Joe J's user avatar
  • 1,349
2 votes
1 answer
78 views

I need to read data from boost::beast::flat_buffer into a std::string, then modify the string object and write the result back into boost::beast::flat_buffer. To convert boost::beast::flat_buffer into ...
Joe J's user avatar
  • 1,349
1 vote
1 answer
106 views

That's how documentation describes boost::beast::websocket::stream::set_option: Set the permessage-deflate extension options. https://live.boost.org/doc/libs/1_68_0/libs/beast/doc/html/beast/ref/...
Joe J's user avatar
  • 1,349

15 30 50 per page
1
2 3 4 5
22