2469 Commits

Author SHA1 Message Date
667e9ea251 Remove detail::bind_default_executor helper 2023-10-26 15:36:30 +03:30
3996cae768 allocate & invoke hooks are removed. 2023-10-26 12:33:24 +03:30
a7927988ea Update documentation for websocket::stream::async_write_some
Closes #2755
2023-10-26 08:56:59 +03:30
19976ff016 Set version to 349. 2023-10-13 10:52:15 +02:00
dd875463ff immediate_executor is supported. (#2672) 2023-10-13 05:33:23 -03:00
177a1222a6 Fix typo in documentation 2023-10-12 13:39:36 +08:00
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
35d533299c work_guard has license info. 2023-08-18 18:46:28 +08:00
2952b670d8 Handler requirements of ping/pong are correct.
Closes #2713
2023-08-18 18:45:39 +08:00
668dcf51c1 Drone caching (#2655)
Co-authored-by: Klemens Morgenstern <klemens.d.morgenstern@gmail.com>
2023-08-18 15:23:02 +08:00
ba25a117a7 server-flex-awaitable example resets parser.
Closes #2715.
2023-08-18 11:40:20 +08:00
902df30f10 openssl is set to 1.1.1.2100 for x86
At the moment 3.1.1 can only be installed on x64.
2023-08-18 08:27:59 +08:00
915b80a157 set minimum gcc version to 5.0.
This is due to C++98 support being dropped, so 4.8 fails other libraries C++11 detection.
2023-08-17 12:12:43 +08:00
b0f6f9c39c Self-hosted github actions runners 2023-08-14 18:08:23 +08:00
f9433d22d0 Set version to 348. 2023-06-28 12:35:52 +08:00
296317f757 boost 1.83 release notes 2023-06-28 12:33:15 +08:00
af5240f6f1 cancel test allows reset connection in tests. 2023-06-23 09:49:54 +08:00
099dcb58e8 disabled asan - clang ubasan checks, too. 2023-06-23 09:49:54 +08:00
a4a90af541 all asan uses ucontext. 2023-06-23 09:49:54 +08:00
edf11b77fd gh action runs in the correct path. 2023-06-23 09:49:54 +08:00
c9874bfd60 jamfile uses openssl.jam 2023-06-23 09:49:54 +08:00
19d5992def drone.bat actually runs the tests. 2023-06-23 09:49:54 +08:00
72c2eeb398 ssl_stream doesn't use BOOST_BEAST_ASYNC_TPARAM1 due to clang errors.
Closes #2661
2023-06-20 10:40:20 +08:00
ae01f0201d Documentation has less typos.
closes #2679.
2023-05-15 09:18:05 +08:00
a23e24ffee Reimplement (C++23) deprecated std::aligned_storage (#2680)
Use boost::aligned_storage instead of std::.

The latter is deprecated in C++23.

---------

Co-authored-by: Ed Catmur <edward.catmur@mavensecurities.com>
2023-05-15 09:03:10 +08:00
cd6b79db5a headers using std::int8_t et al. include <csdint>. 2023-05-15 08:49:53 +08:00
a4718ee87b change upgrade to Upgrade as connection header value 2023-05-12 18:46:55 +08:00
fd18cfa242 Remove unused failure reporting code 2023-05-12 18:46:36 +08:00
e65aff42f5 msvc scripts work again. 2023-05-12 14:08:47 +08:00
7625ec7531 OSX ASan uses ucontext. 2023-05-12 13:10:53 +08:00
c316c6bd35 Merge branch 'develop' boost-1.83.0.beta1 boost-1.83.0 2023-05-10 16:42:41 -07:00
42b6387ae4 Fixes for MSVC 2022 issues.
Closes #2653.
boost-1.82.0
2023-03-22 16:11:06 +08:00
0e5cf9ff79 awaitable-ssl example belongs to right directory
Closes #2654
2023-03-22 16:11:06 +08:00
b0996f099a Fixes for MSVC 2022 issues.
Closes #2653.
2023-03-21 22:39:14 +08:00
685722c505 awaitable-ssl example belongs to right directory
Closes #2654
2023-03-21 22:39:14 +08:00
3dddb5fecf Set version to 347. boost-1.82.0.beta1 2023-02-20 14:06:17 +08:00
99787227cb boost 1.82 release notes. 2023-02-20 14:01:55 +08:00
2bd65b27e1 awaitable server close fix.
Closes #2637
2023-02-20 13:58:07 +08:00
78c21308fa Doc grammar & reference corrections.
Closes #2578 & #2634.
2023-02-17 13:54:34 +08:00
8dc6daa507 Address bind_handler ambiguous overload error when boost/bind/std_placeholders.hpp is included (#2638)
* Address bind_handler ambiguous overload error when boost/bind/std_placeholders.hpp is included

Previously, the implementation of bind_handler made the assumption
that the trait boost::is_placeholder would be false for types
corresponding to values in the std::placeholders namespace.

However, boost/bind commit c85b31e3d200dda2a73cf0027a82c6d8e29066f8,
`Support use of standard placeholders with boost::bind`, added a new
header, boost/bind/std_placeholders.hpp, which adds specializations to
 boost::is_placeholder for std::placeholders types.

When this header is included before a use of boost::bind_handler, it
results in compiler errors like the following, due to an internal
helper function having overloads for
enable_if<boost::is_placeholder...> and
enable_if<std::is_placeholder...>, which were previously assumed to be
mutually exclusive, but for which both conditions now are true:

../../../boost/beast/core/detail/bind_handler.hpp:126:18: error: call of overloaded 'extract(std::_Placeholder<1>, boost::beast::detail::tuple<int&&>)' is ambiguous
  126 |         h(extract(detail::get<S>(std::move(args)),
      |           ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  127 |             std::forward<ValsTuple>(vals))...);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This header is included in boost/bind/bind.hpp, and is transitively
included by headers in many boost libraries including:

algorithm
asio
atomic
graph
msm
multi_index
property_tree
ptr_container
python
signals2
test
thread

Making it possible that an include from one of these libraries will
randomly cause bind_handler to fail to compile.

This change addresses the issue by eliminating one of the ambiguous
overloads and ensuring that boost/bind/std_placeholders.hpp is
included in the bind_handler implementation file, so that the
enable_if<boost::is_placeholder...> overload can handle both
boost::placeholders and std::placeholders values. It also explicitly
adds a boost/bind/std_placeholders.hpp include to the bind_handler
unit test to prevent this issue from regressing.

* Address boost/bind/std_placeholders.hpp feature guards

boost/bind/std_placeholders.hpp has the following feature guards:

if !defined(BOOST_NO_CXX11_HDR_FUNCTIONAL) && !defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS)

If this check fails, it will not detect std::placeholders values as
placeholders, making the previous solution fail.

This update restores the std::is_placeholder overload and adjusts the
SFINAE for the boost::is_placeholder overload so that it triggers only
if std::is_placeholder is false, making bind_handler work regardless
of whether std_placeholders.hpp's feature guard applies.

---------

Co-authored-by: Edward Nolan <enolan@maystreet.com>
2023-02-17 13:50:04 +08:00
341ac7591b Set version to 346. 2023-02-06 04:22:37 +08:00
1d965752b2 beast file_body & file support seek.
win32 file_body handles seek correctly.
Added seek to win32 file.
file_body_writer handles offsets.
2023-02-05 02:57:41 +08:00
4ff4c79d5b file_body buffer size can be configured. 2023-02-05 02:57:41 +08:00
99bceb5bff examples & tests use context instead of coroutine. 2023-02-02 23:27:49 +08:00
1841a592d6 Minimalistic method examples. 2023-02-02 15:05:11 +08:00
51a73f2e64 Adjusted append docs.
Closes #2568.
2023-02-02 14:00:19 +08:00
11b267e724 s390x clang is disabled. 2023-02-02 13:59:17 +08:00
4f3ba278c6 Fields is not declared deprecated. 2023-02-01 18:00:12 +08:00
8fc6df2a98 Drone: use generate function to build jobs 2023-02-01 17:50:43 +08:00
947b225c9e No unused function in awaitable examples. (#2605)
* No unused function in awaitable examples.
* Beast has an awaitable-ssl example.

Closes #2604.
2023-01-24 09:55:05 +08:00