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:
Vinnie Falco
2017-07-20 08:12:19 -07:00
parent 513a54835c
commit b9dbb76c4f
6 changed files with 38 additions and 47 deletions
+3 -3
View File
@@ -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&)