Mohammad Nejati
aabd5b51d3
net::prepend is replaced with net::append
2024-07-07 14:58:49 +03:30
Mohammad Nejati
75812db90a
get_executor() works on initiation objects
...
This is required for the new `asio::cancel_at` and `asio::cancel_after`
completion token adapters to work.
2024-07-04 19:49:41 +03:30
Christopher Kohlhoff
1a2b85b7a4
Fix overloads that are ambiguous when using default completion tokens
2024-06-27 16:33:10 +03:30
Mohammad Nejati
2dcdef3890
Handle expired timers in basic_stream transfer_op
...
Previously, the code only handled expired timers when the buffer was empty.
2024-05-13 22:17:17 +03:30
Mohammad Nejati
e0a9da265f
buffers_adaptor::subrange conforms to concept
...
Fixes #2459
2024-02-07 00:11:14 +03:30
Mohammad Nejati
3b837c6982
Fix unreachable code warning in buffers_cat.hpp
...
Fixes #2678
2024-01-22 19:55:56 +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
dd3f692e7d
Use the explicit type std::size_t when completing the transfer_op
...
Fixes #2766
2023-11-15 12:09:23 +03:30
Klemens Morgenstern
3996cae768
allocate & invoke hooks are removed.
2023-10-26 12:33:24 +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
c9900625ea
buffers_cat uses BOOST_NORETURN.
2023-01-23 21:18:27 +08:00
Klemens
e88185f765
basic_stream doesn't use try-catch with no-exceptions.
2023-01-23 21:18:27 +08:00
Klemens Morgenstern
aef9c88c9d
error categories use numeric id
2023-01-23 17:48:28 +08:00
Klemens Morgenstern
1fc340713c
beast support default completion & rebind.
...
buffers_generator uses default_completion.
websocket::stream has a rebinding constructor.
ssl_stream has a rebind_executor member.
basic_stream has rebinding constructor.
2022-10-30 00:13:54 +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
3869d472ec
buffer_adaptors uses the correct begin function.
2022-10-14 17:20:15 +08:00
Ed Catmur
78fc61a9f7
Remove unnecessary constant_time_size for multi_buffer:
...
http::basic_fields::set_t::size() is unused
core::multi_buffer::list_type::size() is only compared to 1 (in shrink_to_fit()); compare iterators instead.
close #2498
2022-08-24 21:42:22 +02:00
alandefreitas
46729654c1
Remove unused method
...
fix #2410
2022-06-22 15:07:45 -03:00
sehe
84e689c447
Add buffers_generator
2022-05-21 22:12:13 -07:00
Vinnie Falco
d3f24157b8
silence unreachable code warning
2022-05-21 22:12:13 -07:00
Glen Fernandes
24275ac0c6
Use static_string from Boost.StaticString
2022-04-17 12:30:52 -04:00
Richard Hodges
6bf9c882a4
Fix open append mode for file_posix
2021-12-10 17:24:03 +01:00
Richard Hodges
cf29ecdb63
Fix open append mode for file_win32
2021-12-10 17:22:50 +01:00
vm2mv
fb8f57a9e5
Fix file open with append/append_existing flag on Windows
2021-12-10 17:14:16 +01:00
Peter Dimov
b160673fd9
Fix clang-cl UTF8 path handling for file_stdio:
...
Check _MSVC_STL_VERSION in addition to BOOST_MSVC, to detect e.g. clang-cl using the MS STL
close #2353
refs #2081
2021-12-09 14:27:24 +01:00
Richard Hodges
5546086ca9
Remove use of POSIX-only constant
...
fixes #2233
refs #2231
2021-06-06 16:49:21 +02:00
Richard Hodges
1a5aea3d86
Fix MSVC build error
2021-03-15 23:12:00 +01:00
Nik Bougalis
33ea793020
Avoid the need for floating point arithmetic
...
closes #2124
2020-12-16 18:31:36 +01:00
Richard Hodges
7811f4c52f
Fix assert when basic_stream used as underlying of ssl::stream with 0-length write
...
Fixes #2065
Closes #2078
2020-09-03 16:12:40 +02:00
Richard Hodges
d04ff199bb
Fix unreachable code warning with MSVC
...
fixes #1582
closes #2035
2020-08-28 13:26:23 +02:00
Richard Hodges
982120c73e
Fix file open with append_existing flag on posix
...
fixes #2011
closes #2027
2020-08-28 13:26:22 +02:00
Richard Hodges
932db900c3
Add handler tracking locations to flat_stream
2020-08-28 13:26:21 +02:00
Christopher Kohlhoff
5641d9498b
Add handler tracking locations to basic_stream
2020-08-28 13:26:17 +02:00
Richard Hodges
060f59685c
Support BOOST_ASIO_NO_TS_EXECUTORS
2020-07-04 07:35:14 +02:00
Christopher Kohlhoff
107b01ad24
Update bind_handler test to use standard executor form
2020-07-04 07:35:01 +02:00
Christopher Kohlhoff
22f2f5dcf4
Handler invoke and allocation hooks are deprecated
2020-07-04 07:34:21 +02:00
Richard Hodges
ae2b699e04
Fix max() compile error
...
closes #1980
2020-06-12 14:21:11 +02:00
Richard Hodges
60d4b54ec7
Remove handler_pointer (API Change):
...
API Changes:
handler_ptr has been removed. Users should use net::bind_handler and/or
bind_front_handler instead.
refs #1934
2020-06-02 12:57:43 +02:00
Richard Hodges
d7f1426f34
Fix basic_stream expires_after (API Change):
...
API Changes:
basic_stream::expires_after used to take a nanosecond duration type argument. This
required users on systems where the steady_clock::duration_type was less accurate
to explicity duration_cast when calling this function, making code non-portable.
The duration type is now that of the embedded steady_clock.
Many thanks to @spdw for noticing this and providing a patch.
fixes #1943
closes #1960
2020-05-29 17:16:32 +02:00
Richard Hodges
73097d3bd3
Fix std::FILE namespace qualification
...
refs #1944
closes #1962
2020-05-29 16:41:56 +02:00
Richard Hodges
438c238ab9
Comment move behaviour of basic_stream
...
resolves #1917
2020-05-04 10:58:54 +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
Richard Hodges
d016ff52af
Fix all async initiating functions with use_awaitable:
...
Add trait:
is_completion_token_for
Fixes for
buffered_read_stream
Add tests for
basic_stream
buffered_read_stream
flat_stream
http (all)
websocket (all)
resolves #1920
2020-04-28 20:48:00 +02:00
Richard Hodges
570eafcd40
Ensure basic_stream::close will not throw
...
refs: #1875
2020-03-17 16:06:41 +01:00
Richard Hodges
fc5399722e
Refactor static_buffer
2020-02-29 10:43:00 -08:00
Richard Hodges
69ef525d5c
Refactor buffers_adaptor
2020-02-29 10:43:00 -08:00
Vinnie Falco
c340697171
Refactor multi_buffer
2020-02-29 10:42:30 -08:00