forked from boostorg/beast
read_message_max is a member of stream (API Change):
fix #446 * The read_message_max option struct is removed. Actions Required: * Change call sites which use read_message_max with set_option to call stream::read_message_max instead.
This commit is contained in:
@@ -557,7 +557,7 @@ public:
|
||||
ws.set_option(write_buffer_size{2048});
|
||||
ws.binary(false);
|
||||
ws.read_buffer_size(8192);
|
||||
ws.set_option(read_message_max{1 * 1024 * 1024});
|
||||
ws.read_message_max(1 * 1024 * 1024);
|
||||
try
|
||||
{
|
||||
ws.set_option(write_buffer_size{7});
|
||||
@@ -1815,10 +1815,10 @@ public:
|
||||
restart(error::closed);
|
||||
|
||||
// message size exceeds max
|
||||
ws.set_option(read_message_max{1});
|
||||
ws.read_message_max(1);
|
||||
c.write(ws, cbuf(0x00, 0x00));
|
||||
restart(error::failed);
|
||||
ws.set_option(read_message_max{16*1024*1024});
|
||||
ws.read_message_max(16*1024*1024);
|
||||
}
|
||||
}
|
||||
catch(system_error const&)
|
||||
|
||||
Reference in New Issue
Block a user