Mohammad Nejati
bcd65c828e
Fix unused parameter warnings in tests
2024-03-31 18:59:36 +03:30
Mohammad Nejati
6adca47bbe
Fix unused-result warning in deferred.cpp
2024-01-18 22:57:29 +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 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 Morgenstern
af5240f6f1
cancel test allows reset connection in tests.
2023-06-23 09:49:54 +08:00
Klemens
f7079044a7
websocket tests have larger timeouts.
...
The tests fail on freebsd.
2022-12-20 18:01:12 +08:00
Klemens Morgenstern
48f82ac817
Switched self-posting to the io-object's executor.
...
This is a conceptual change in the recent asio version that is reflected in any_completion_handler.
2022-12-20 14:45:26 +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
606d776ebb
async_read works with dynamic_buffer v2.
2022-10-14 17:20:15 +08:00
Klemens Morgenstern
b0c49748a2
Support expect continue in upgrade.
...
Closes #264 .
2022-10-13 09:26:08 +08:00
alandefreitas
bd69638e9d
per-message compression options
...
fix #226 , #227
2022-10-03 09:25:31 +08:00
Vinnie Falco
6c9e9ea243
Tests are fat binaries
2022-05-21 22:12:13 -07:00
Richard Hodges
b5a94db2a5
WebSocket handshake response is deterministic on failure:
...
Add test for websocket handshake failure HTTP response
fix #2364
close #2365
2021-12-22 12:00:17 +01:00
Richard Hodges
355dcfe502
Add individual tests to CMake workflow
...
close #2350
2021-12-09 14:27:18 +01:00
Richard Hodges
7257d64a21
WebSocket test is deterministic
2021-04-06 19:24:51 +02:00
Richard Hodges
c3e83439dd
Fix incorrect websocket test ordering
2021-03-29 12:17:23 +02:00
dmorilha-twilio
8283a7df3f
Fix case where inflated content is larger than out buffer
...
closes #2191
2021-03-25 14:47:10 +01:00
Richard Hodges
fae4c0e3c2
Parenthesise all uses of min() and max()
2021-03-16 10:02:47 +01:00
Richard Hodges
8913a3cd21
Add executor rebind to test::stream
...
closes #2139
2020-12-16 21:11:29 +01:00
Richard Hodges
a9b5bf343d
Examples require tracked
2020-07-04 08:22:57 +02:00
Richard Hodges
060f59685c
Support BOOST_ASIO_NO_TS_EXECUTORS
2020-07-04 07:35:14 +02:00
Christopher Kohlhoff
55302a3f8f
New name for polymorphic executor. Trait for detecting new executors
2020-07-04 07:34:34 +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
Cristian Morales Vega
26a156e300
Fix async_close error code when async_read times out
...
close #1754
2019-11-02 08:26:23 -07:00
Vinnie Falco
bafce23853
Squelch spurious websocket timer assert
2019-10-09 12:00:22 -07:00
Vinnie Falco
0f932d589b
Silence unused variables
2019-10-04 18:57:48 -07:00
Vinnie Falco
9f77867f0a
Fix outgoing websocket message compression
...
fix #1666
2019-07-29 10:35:41 -07:00
Damian Jarek
5f0939e771
Simplify websocket::detail::prng:
...
- Use a regular function pointer for dynamic dispatch.
- Remove `prng::ref` - it did not benefit the default case
(TLS avaialable) and actually made the no-TLS case slower, because
the time spent in the generator is dominated by mutex locking.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-01 12:49:01 -07:00
Damian Jarek
a5a28c3b7d
Fix UB in websocket read tests
...
An object returned from a function is not guaranteed not to be copied
in C++14 or earlier, using `initializer_list` removes the reliance on
RVO to work.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-25 20:00:33 +02:00
Damian Jarek
86176786c3
Expand CI matrix using Azure Pipelines:
...
* Allow setting a seed in websocket prng to workaround a valgrind bug
in Xenial.
* Coverage collection in Azp.
* Fixup blacklists to avoid zlib bugs.
* Use native b2 features for sanitizers and valgrind.
* Expanded Windows build matrix.
* Add additional clang (with libc++) builds.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-19 22:32:44 +02:00
Damian Jarek
cefb744794
Remove uses of deprecated methods in websocket tests
...
This enables tests to be built without BOOST_BEAST_ALLOW_DEPRECATED.
Close #1612
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-19 22:32:43 +02:00
Vinnie Falco
6be11913a0
Add idle ping suspend test
...
close #1599
2019-05-04 18:47:37 -07:00
Damian Jarek
16631de5d9
Fix UB in websocket close tests
...
Extend the lifetime of buffers in tests to avoid use-after-free.
Resolves : #1593
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-04 17:29:43 +02:00
Vinnie Falco
7c084509d6
decorator constructor is constrained
2019-04-02 16:49:05 -07:00
Vinnie Falco
61fcd9ef6f
Refactor Jamfiles to work with release layout
2019-03-24 09:18:02 -07:00
Vinnie Falco
b38901887b
cmake: Use static libs to speed up builds
2019-03-23 17:50:38 -07:00
Damian Jarek
222dcf7b18
Jamfile cleanup:
...
- Don't set the global link settings (`<link>`) to avoid dependency
ordering issues in the future.
- Allow the user to decide on the link settings for dependencies
(filesystem/coroutine).
- Make dependencies in examples explicit.
- Remove dependency of examples on Boost.Filesystem (was not used there).
- Deduplicate build settings.
- Speed up test compilation by avoiding rebuilding of main test file.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-03-21 17:23:49 +01:00
Damian Jarek
8869ec5681
Use secure TLS/SSL versions:
...
TLS1.2 can be used instead, it is available in all currently
supported versions of OpenSSL.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-03-14 09:56:50 -07: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
e4342b51b2
SSL teardowns are in an associated namespace
2019-03-04 18:33:24 -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
4eb137f8ea
Fix decorator for certain sizes
2019-03-03 17:13:56 -08:00
Vinnie Falco
62878255fb
Workaround for msvc-14.0
2019-03-03 12:52:35 -08:00
Vinnie Falco
fca4b3ae10
make_strand is in net::
2019-03-02 07:33:57 -08:00
Vinnie Falco
974f34beab
Tidy up a warning and test
2019-02-27 18:15:07 -08:00
Damian Jarek
72a99c43a7
Pausation abandoning test
...
Check if paused operations are correctly abandoned when the
ExecutionContext shuts down.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-02-27 16:42:41 -08:00
Vinnie Falco
031e13c253
Add websocket service
2019-02-27 16:42:19 -08:00