Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

any_connection_params::max_buffer_size
PrevUpHomeNext

The maximum size of the connection's buffer, in bytes (64MB by default).

Synopsis
std::size_t max_buffer_size {0x4000000};
Description

Attempting to read or write a protocol packet bigger than this size will fail with a client_errc::max_buffer_size_exceeded error.

This effectively means:

  • Each request sent to the server must be smaller than this value.
  • Each individual row received from the server must be smaller than this value. Note that when using execute or async_execute, results objects may allocate memory beyond this limit if the total number of rows is high.

If you need to send or receive larger packets, you may need to adjust your server's max_allowed_packet system variable, too.


PrevUpHomeNext