Commit Graph
802 Commits
Author SHA1 Message Date
Vinnie Falco 198846d7bd Update CMakeLists.txt for boost 2017-07-23 20:04:07 -07:00
Vinnie Falco ad8c5f9f7f Use winapi 2017-07-23 17:38:06 -07:00
Vinnie Falco b80f9797f2 Add local-travis.sh 2017-07-23 17:36:47 -07:00
Vinnie Falco a72839645d Update README.md 2017-07-23 17:36:31 -07:00
Vinnie Falco 7317bd0de9 Use custom variant 2017-07-23 17:36:12 -07:00
Vinnie Falco b97586b318 Remove use of lexical_cast 2017-07-23 17:34:41 -07:00
Vinnie Falco 7139dd639a Boost prep 2017-07-23 17:34:13 -07:00
Vinnie Falco 3777cb8b9c Set version to 85 2017-07-22 20:09:30 -07:00
Vinnie Falco e5a4dc6a96 Tidy up test warning 2017-07-22 20:09:24 -07:00
Sacha c2ecb34404 Fix test failure 2017-07-22 20:09:21 -07:00
Vinnie Falco 71ea5ebb75 Set version to 84 2017-07-20 08:15:32 -07:00
Vinnie Falco cb501a07c8 WebSocket optimizations (API Change):
The websocket stream is optimized to contain a small
circular static buffer, reducing the number of I/O calls when
reading data. The size of the buffer is tuned for maximum
performance with TCP/IP and no long needs configuration:

* read_some replaces read_frame
* write_some replaces write_Frame
* async_read_some replaces async_read_frame
* async_write_some replaces async_write_frame

* websocket::stream::read_buffer_size is removed

Actions Required:

* Remove calls websocket::stream::read_buffer_size

* Use read_some and write_some instead of read_frame and write_frame
2017-07-20 08:15:32 -07:00
Vinnie Falco 28b5275c73 Use move -pv on Travis 2017-07-20 08:15:32 -07:00
Vinnie Falco 8f3d5a094c Add consuming_buffers::get 2017-07-20 08:15:32 -07:00
Vinnie Falco 4eb926cd67 bind_handler allows placeholders 2017-07-20 08:15:32 -07:00
Vinnie Falco 5e4a5592f3 multi_buffer is type-check friendly 2017-07-20 08:15:32 -07:00
Vinnie Falco ed7c095df9 static_buffer::consume improvement 2017-07-20 08:15:32 -07:00
Vinnie Falco 834682e650 Add detail::sum_exceeds 2017-07-20 08:15:32 -07:00
Vinnie Falco 22091d5a1c Tidy up some comments 2017-07-20 08:15:32 -07:00
Vinnie Falco 85cd2b125b Tidy up buffer_front 2017-07-20 08:15:32 -07:00
Vinnie Falco 271922e752 Set version to 83 2017-07-20 08:15:32 -07:00
Adrian Imboden 871ebf1c1c Fix private timer::clock_type
fix #662
2017-07-20 08:15:32 -07:00
Vinnie Falco 60e133ab4c read_some, async_read_some return bytes used
fix #659
2017-07-20 08:15:32 -07:00
Vinnie Falco 04887c49e0 Documentation work 2017-07-20 08:15:32 -07:00
Vinnie Falco 4e44ddbd45 Add static_buffer (API Change):
* static_buffer is added

Note this is the same name from two versions ago, when
static_buffer was renamed to flat_static_buffer for
consistency and to clear the name for a circular static
buffer.

Actions Required:

* Callers who depend on static_buffer returning sequences of
  exactly length one should switch to flat_static_buffer.
2017-07-20 08:15:32 -07:00
Vinnie Falco cb21b117bf Turn some flat_static_buffer_tests on 2017-07-20 08:15:32 -07:00
Vinnie Falco 2b89bbce41 Add wstest compression option 2017-07-20 08:15:32 -07:00
Vinnie Falco 47c07b0a59 Fix buffer lifetime in websocket write 2017-07-20 08:15:32 -07:00
Vinnie Falco cee3bff060 Add buffer_front 2017-07-20 08:15:32 -07:00
Vinnie Falco 6fa9a97727 Add flat_static_buffer::mutable_data 2017-07-20 08:15:32 -07:00
Vinnie Falco cda710bda0 Set version to 82 2017-07-20 08:15:32 -07:00
Vinnie Falco 39358a2f93 Fix extraneous argument in async_write_header
fix #655
2017-07-20 08:15:32 -07:00
Vinnie Falco d4eaa002a8 Silence spurious warning 2017-07-20 08:15:32 -07:00
Vinnie Falco bd5ab6ffd0 Add wstest benchmark tool 2017-07-20 08:15:32 -07:00
Vinnie Falco 94e92e75b7 Rename to flat_static_buffer and flat_static_buffer_base (API Change):
Actions Required:

* Rename static_buffer to flat_static_buffer_base
* Rename static_buffer_n to flat_static_buffer
2017-07-20 08:15:31 -07:00
Vinnie Falco 1d7d7445d5 Add session_alloc to example/common 2017-07-20 08:15:31 -07:00
Vinnie Falco 8fa8ecb502 Use std::function and reference wrapper 2017-07-20 08:15:31 -07:00
Vinnie Falco 3c2d3181fc accept requires a message 2017-07-20 08:15:31 -07:00
Vinnie Falco efd715e55c stream uses flat_buffer 2017-07-20 08:15:31 -07:00
Vinnie Falco 2dced4398e Add rd_close_ to websocket stream state 2017-07-20 08:15:31 -07:00
Vinnie Falco 4d15fc455a websocket::stream tidying 2017-07-20 08:15:31 -07:00
Robert Allan Hennigan Leahy 27d070c724 is_invocable works with move-only types:
fix #652

Previously reported that function objects
taking move only types by value were not invocable.
2017-07-20 08:15:31 -07:00
Vinnie Falco 2ea3240ed6 Documentation tidying 2017-07-20 08:15:31 -07:00
Vinnie Falco c341e8415f Set version to 81 2017-07-20 08:15:31 -07:00
Vinnie Falco 4b71aa67e0 Refactor chunked parsing (API Change):
* parser now has a callback feature for intercepting chunk headers
  and chunk bodies

* The names for basic_parser derived class callbacks have been
  refactored

* basic_parser offers an additional callback for distinguishing
  chunk body data.

Actions Required:

* Adjust signatures for required members of user-defined
  subclasses of basic_parser

* Use the new basic_parser chunk callbacks for accessing
  chunk extensions and chunk bodies.
2017-07-20 08:15:31 -07:00
Vinnie Falco cc73d883be File is not copy-constructible 2017-07-20 08:15:31 -07:00
Vinnie Falco 9ecd2a491e multi_buffer ctor is explicit 2017-07-20 08:15:31 -07:00
Nik Bougalis 696c4169fc Suppress incorrect GCC warning:
GCC will something generate an incorrect warning when compiling Beast
with the -Wmaybe-uninitialized flag.

For more details, see

http://www.boost.org/doc/libs/1_64_0/libs/optional/doc/html/boost_optional/tutorial/gotchas/false_positive_with__wmaybe_uninitialized.html
2017-07-20 08:15:31 -07:00
Vinnie Falco 78f3cd59a1 better is_final on empty_base_optimization 2017-07-20 08:15:31 -07:00
Vinnie Falco b18d0d15b0 Pass string_view by value 2017-07-20 08:15:31 -07:00