Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
any_connection_params::max_buffer_size

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:

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


PrevUpHomeNext