Commit Graph
604 Commits
Author SHA1 Message Date
Vinnie Falco d2041c0322 Doc tidying 2019-03-08 09:33:52 -08:00
Damian Jarek b9aad3d06c Fix completion handler invocation signatures
Completion handlers should be called with the exact same signature as
provided to `async_result`.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-03-07 12:56:40 -08:00
Vinnie Falco fdf64a4550 Remove dynamic_buffer_ref:
* dynamic_buffer_ref is removed, because Asio / Networking
  has introduced the DynamicBuffer_v2 concept which is incompatible
  with Beast's storage types.

The next version of Beast (1.70) will provide changes to
interoperate with Asio / Networking's new concepts.
2019-03-07 12:56:40 -08:00
Vinnie Falco f4e2a327c8 Don't use dynamic_buffer_ref 2019-03-07 12:56:40 -08:00
Vinnie Falco 79e6c61db5 Set version to 229 2019-03-06 11:52:52 -08:00
Vinnie Falco 06a42f2202 Fix stable_async_base example 2019-03-06 10:38:08 -08:00
Vinnie Falco 45353a7f04 handler_ptr is deprecated (API Change):
* `handler_ptr` is deprecated and should not be used.

Actions Required:

* Replace use of `handler_ptr` with `stable_async_base`
  and `allocate_stable`.
2019-03-06 10:38:08 -08:00
Vinnie Falco 7f53b0f66c detect_ssl returns a bool
fix #1288
2019-03-06 05:50:22 -08:00
Vinnie Falco e073a9e7fc Tidy up docs 2019-03-05 20:15:07 -08:00
Vinnie Falco 9f2b0ce1db Rename to buffer_bytes 2019-03-05 11:09:53 -08:00
Vinnie Falco 6ccdcdf51d buffer_size is in buffer_traits.hpp 2019-03-05 11:09:50 -08:00
Vinnie Falco 8e2620e2b1 Doc tidy 2019-03-05 08:00:14 -08:00
Vinnie Falco 31331bbe4d Set version to 228 2019-03-04 18:33:27 -08:00
Vinnie Falco e4342b51b2 SSL teardowns are in an associated namespace 2019-03-04 18:33:24 -08:00
Vinnie Falco 75c3ca622f Sync up convenience headers 2019-03-04 14:44:31 -08:00
Damian Jarek 8f83b4e611 Fix UB in decorator:
- don't assume layout or size overhead of classes with
  virtual members (use split vtable)
- don't use SOO for types with throwing move

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-03-04 14:44:15 -08:00
Vinnie Falco dc239fbb39 Set version to 227 2019-03-03 20:28:54 -08:00
Vinnie Falco 0e4e7ff370 ~basic_parser is virtual 2019-03-03 19:31:52 -08:00
Vinnie Falco 4eb137f8ea Fix decorator for certain sizes 2019-03-03 17:13:56 -08:00
Vinnie Falco 1e5b4f531d Set version to 226 2019-03-03 13:36:36 -08:00
Eelis van der Weegen 9992701a4a Fix ubsan false positive:
* Avoid calling stream() on partially constructed object.

Fixes #1495, fix #1496
2019-03-03 13:36:31 -08:00
Vinnie Falco 62878255fb Workaround for msvc-14.0 2019-03-03 12:52:35 -08:00
Vinnie Falco 1432d336be Move parser definitions to .ipp 2019-03-02 09:13:08 -08:00
Vinnie Falco edf5b7cd03 Fix HTTP parser static string calculation 2019-03-02 09:13:08 -08:00
Vinnie Falco cec63d923c Tidy up appveyor error 2019-03-02 07:33:57 -08:00
Vinnie Falco fca4b3ae10 make_strand is in net:: 2019-03-02 07:33:57 -08:00
Damian Jarek c7a7d16992 Allow the use of string_body and vector_body with -fno-exceptions
`string_body` and `vector_body` will no longer translate all exceptions
to "buffer_overflow" error code. `buffer_overflow` error can now only
occur if the Body's max_size() is exceeded.

Changes required:
Code that relies on exceptions thrown from value_type's reserve/resize
being translated into an error code must implement a mechanism to catch
the exception.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-03-01 14:50:50 -08:00
Vinnie Falco 8c53abe6e5 Support -fno-exceptions 2019-03-01 13:52:50 -08:00
Vinnie Falco 723fceaf67 Set version to 225 2019-03-01 12:02:47 -08:00
Vinnie Falco a3f0ea3573 Move macro from config.hpp 2019-03-01 10:47:09 -08:00
Vinnie Falco df93a8dbf1 Set version to 224 2019-02-28 11:43:15 -08:00
Vinnie Falco 00487f1de6 Reusing an HTTP parser returns an error 2019-02-28 10:27:43 -08:00
Vinnie Falco f611807bc0 Set version to 223 2019-02-27 18:15:11 -08:00
Vinnie Falco ef5282ebcf Tidy up websocket service 2019-02-27 16:44:04 -08:00
Vinnie Falco 92ad50a8e7 Destroy abandoned websocket ops on shutdown
fix #1358
2019-02-27 16:44:01 -08:00
Vinnie Falco 031e13c253 Add websocket service 2019-02-27 16:42:19 -08:00
Vinnie Falco 05b5843e19 Next layer is a base class 2019-02-27 14:48:31 -08:00
Vinnie Falco c510662c67 Add test::stream::service 2019-02-27 14:05:16 -08:00
Vinnie Falco 5af7ad2e15 Set version to 222 2019-02-27 07:01:42 -08:00
Vinnie Falco 22b6fa4121 Reduce instantiations in detect_ssl 2019-02-27 06:54:55 -08:00
Vinnie Falco d0cf40d5b2 Fix as-if post 2019-02-27 06:53:22 -08:00
Vinnie Falco 8f9eed1faf stream_base::timeout::suggested is a nested function 2019-02-27 06:52:45 -08:00
Vinnie Falco b02f59ff91 Set version to 221 2019-02-26 07:21:15 -08:00
Vinnie Falco 7953ac281f Pass references as pointers to async_initiate 2019-02-26 07:21:05 -08:00
Vinnie Falco ab9a4c66e0 Doc work 2019-02-26 07:21:04 -08:00
Damian Jarek e9ba521c60 Cleanup in test::stream internals:
* avoid one instantiation of `bind_handler_front`
* avoid going through the 2-arg post unnecessarily in `read_op`

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-02-26 07:20:48 -08:00
Vinnie Falco 0647c902ac role_type is in boost/beast/core/role.hpp (API Change):
This enumeration is now part of the library core and
not specific to websocket.
2019-02-26 07:20:46 -08:00
Vinnie Falco 81f33a0f89 Rename to async_base, stable_async_base 2019-02-26 07:20:08 -08:00
Vinnie Falco 28eecefaaa Set version to 220 2019-02-24 19:44:12 -08:00
Vinnie Falco d9400ce618 Refactor docs 2019-02-24 18:46:27 -08:00