Mohammad Nejati
59310dddac
Fix ambiguity in test::basic_stream constructor overloads
2024-05-11 13:20:25 +03:30
Mohammad Nejati
98b8be489f
Exclude Asio executor type traits from docs
2024-04-05 21:29:43 +03:30
Mohammad Nejati
54ad4ba714
Fix dereferenced null pointer warning in test::immediate_executor
2024-03-31 18:59:36 +03:30
Mohammad Nejati
bcd65c828e
Fix unused parameter warnings in tests
2024-03-31 18:59:36 +03:30
Mohammad Nejati
26714aceee
Specialize traits for beast::test::immediate_executor
2024-03-28 18:08:52 +03:30
Mohammad Nejati
9e16754dd5
Add non-allocating overload for error category message function
...
Fixes #2646
2024-01-03 18:21:52 +03:30
Mohammad
0d1e2d64f8
Replace beast::bind_front_handler uses with asio::prepend
2023-12-30 08:47:32 +03:30
Mohammad Nejati
3df5d980d0
Specialize asio::associator for bind_wrapper and bind_front_wrapper
2023-12-29 13:10:30 +03:30
Klemens Morgenstern
dd875463ff
immediate_executor is supported. ( #2672 )
2023-10-13 05:33:23 -03:00
Mohammad
45d4f7f306
Replace BOOST_ASIO_INITFN_RESULT_TYPE with BOOST_ASIO_INITFN_AUTO_RESULT_TYPE
...
asio::deferred doesn't work with BOOST_ASIO_INITFN_RESULT_TYPE
Fixes #2727 .
2023-09-05 08:54:08 +03:30
Klemens
027c544a3a
test::handler copies the source location.
2022-12-20 18:01:12 +08:00
Klemens
860bfbdeab
Added source-location to all ecs.
...
Closes #2475 .
2022-12-20 13:16:39 +08:00
Klemens
3ebff60b1a
beast support per-op cancellation
...
- websocket supports cancellation.
- Iterating test for ws cancellation.
- Only terminal cancellation is forwarded by default.
- basic_stream supports cancellation.
- supported cancellation is documented.
- http cancellation additions.
- Added cancellation_slot tests to http, utils and saved_handler.
- Added post to write.cpp, to avoid SIGSEV in test.
- Refresher describes cancellation in more detail.
2022-10-27 22:56:19 +08:00
Klemens Morgenstern
f4d1936bb2
error_codes use source_location.
2022-10-26 00:06:01 +08:00
Klemens Morgenstern
b30e4fbbda
test-handlers use source location
2022-10-13 09:26:08 +08:00
alandefreitas
fbcc16301d
Fix API reference
2022-10-02 22:34:36 +08:00
alandefreitas
925043e1e8
Update Beast zlib streams
...
fix #2439
2022-06-03 17:45:32 -03:00
Richard Hodges
f16925f2b5
Fix typo in _experimental::test::basic_stream documentation
2021-11-12 16:49:24 +01:00
Ed Tanous
071b905bc4
Remove test framework's dependency on RTTI:
...
Allow unit tests to compile with rtti=off
This struct is only used to make sure that there are no duplication of
test suites. Move it to a concept that works with RTTI disabled.
Signed-off-by: Ed Tanous <ed@tanous.net >
close #2337
2021-11-03 20:53:28 +01:00
Ed Tanous
4235525c6a
Allow test::stream to be used with NORTTI:
...
Currently, the test stream code doesn't compile when both debug builds
(namely assertions) are enabled along with disabling rtti. The current
code directly uses type_id(), which isn't available without rtti.
This commit allows stream.hpp to compile without rtti enabled.
Signed-off-by: Ed Tanous <ed@tanous.net >
close #2331
2021-11-03 16:52:48 +01:00
Richard Hodges
f65dc21335
Fix missing includes:
...
Files:
beast/_experimental/test/detail/stream_state.hpp
refs #2295
2021-09-03 21:02:45 +02:00
Richard Hodges
8913a3cd21
Add executor rebind to test::stream
...
closes #2139
2020-12-16 21:11:29 +01:00
Richard Hodges
822722c6c3
Revert removal of deprecated lowest_layer from test::stream:
...
This reverts commit 3fb693eda6 .
2020-12-01 17:52:53 +01:00
Richard Hodges
4357e8356e
Add handler tracking locations to icy_stream
2020-08-28 13:26:21 +02:00
Christopher Kohlhoff
107b01ad24
Update bind_handler test to use standard executor form
2020-07-04 07:35:01 +02:00
Christopher Kohlhoff
aef2559c7a
Use dispatch/post free functions to be independent of executor concept
2020-07-04 07:34:41 +02:00
Richard Hodges
3fb693eda6
Remove deprecated lowest_layer from test::stream.
...
refs #1934
2020-06-02 13:04:23 +02:00
Richard Hodges
638e2d1244
Fix compilation errors with msvc /std:c++latest
...
fixes #1916
fixes #1925
2020-05-01 07:08:31 +02:00
Vinnie Falco
54ea61fd42
Use docca master branch
2019-12-17 11:11:53 -08:00
Vinnie Falco
2f7ddb69ee
Use plain throw in unit test framework
2019-12-06 19:48:27 -08:00
Vinnie Falco
32bbd38387
Support Concepts for completion token params
2019-10-31 06:47:22 -07:00
Vinnie Falco
7cc8759261
Async init-fns use the executor's default token
2019-10-31 05:47:05 -07:00
Vinnie Falco
7dbb3bd417
Add BEAST_THROWS
2019-10-06 15:15:54 -07:00
Mike Ellery
e681f9d212
Add default dtors to satisfy -Wnon-virtual-dtor
...
close #1664
2019-08-29 10:52:07 -07:00
Vinnie Falco
9f77867f0a
Fix outgoing websocket message compression
...
fix #1666
2019-07-29 10:35:41 -07:00
Damian Jarek
b8b04f8f39
Cleanup transitive includes in beast/core/detail/type_traits.hpp
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-24 11:07:41 -07:00
Damian Jarek
f10dc38ae6
Replace uses of net::coroutine with asio::coroutine
...
`asio::coroutine` is an extension, which is not part of
the Networking TS, so the `net` alias is not appropriate in this case.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:35 +02:00
Damian Jarek
a7ae580568
Remove unused includes from test::stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:34 +02:00
Damian Jarek
894ab45052
Remove experimental/unit_test/thread.hpp
...
The file has been unused in Beast for a few releases.
Actions required:
- Copy the `thread` class into your project.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-27 22:13:13 +02:00
Damian Jarek
fd52df9206
Fix data race in test stream
...
Resolve : #1594
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-02 19:39:22 +02:00
Vinnie Falco
4e90183bda
Check defined(BOOST_MSVC)
2019-03-29 20:42:44 -07:00
Vinnie Falco
3c82717fed
test::stream has deprecated lowest_layer for ssl
2019-03-29 17:31:18 -07:00
Vinnie Falco
61fcd9ef6f
Refactor Jamfiles to work with release layout
2019-03-24 09:18:02 -07:00
Vinnie Falco
30d1972aa2
Add missing include
2019-03-11 13:24:20 -07:00
Vinnie Falco
f4e2a327c8
Don't use dynamic_buffer_ref
2019-03-07 12:56:40 -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
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