2207 Commits
Author SHA1 Message Date
Damian Jarek fce080f1a8 Add VS 2019 AzP CI matrix item
The VS 2019 image now includes vcpkg by default, which enables adding
it to CI.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-31 20:11:38 +02:00
Damian Jarek a094e7d891 Remove redundant use of yield_to in parser tests
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-31 02:04:36 +02:00
Damian Jarek d52b4e4bd3 Fix clang inititalization warning in websocket
Clang suggests using double braces when initializing a single subobject
of an aggregate.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-31 02:04:36 +02:00
Damian Jarek ad66be6eb7 Fix separate compilation in CI
`optional` adds a "null" default feature value, effectively defaulting
to `off`, instead of `on`.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-31 02:04:35 +02:00
Damian Jarek 52668cf730 Set version to 257
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-29 21:14:18 +02:00
Vinnie Falco e9781b225e Fix flat_buffer copy members
fix #1621
2019-05-29 21:14:14 +02:00
Damian Jarek 8198571555 Use if statement in basic_stream:
An `if` statement is cheaper to instantiate without additional runtime
cost when optimizations are enabled.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-27 22:15:49 +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 d0b0ab8961 Remove redundant dependencies in http/server/fast example
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-27 20:18:21 +02:00
Damian Jarek 2eedbfedfc Add b2 features for compile-time options used in testing:
- `boost.beast.allow-deprecated=on` disables deprecated features.
- `boost.beast.separate-compilation=on` enables separate compilation.
- Add CI matrix items to check header-only, no-deprecated build.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-27 20:18:20 +02:00
Damian Jarek 15232fcf69 Set version to 256
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-20 15:34:22 +02:00
Vinnie Falco be460675bc Preserve operation_aborted on partial message 2019-05-20 15:34:22 +02:00
Filip Matzner 1501962b92 Use steady_timer type
close #1606
2019-05-20 15:34:21 +02:00
Vinnie Falco 363d5c36d3 Don't pessimize-move 2019-05-20 15:34:21 +02:00
Damian Jarek 85adb6ca2f Fix buffers_cat iterator tests
The default constructed iterators tests were never run.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-20 15:34:20 +02:00
Damian Jarek 3fa468f840 Add 1-element specialization for buffers_cat
`buffers_cat` now supports 1 or more buffers sequences.

Close #1280

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-20 15:33:43 +02:00
Damian Jarek 9909fada29 allocator_traits::construct is used for user-defined types:
It should only be called when constructing a user-provided type.

Close #1332

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-20 15:29:21 +02:00
Konstantin Podsvirov e5bad9cbc2 Make chat websocket javascript client more user friendly
Close #1611
2019-05-19 22:32:44 +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 e98fc22bec Remove redundant template in service_base
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-19 22:32:43 +02:00
Damian Jarek 0f77bd7149 Remove the use of bind_executor in basic_stream:
Use the executor hook instead of `bind_executor` to avoid template
instantiations.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-19 22:32:43 +02:00
Damian Jarek dcf3db7f83 Remove redundant use of static_string
This avoids an instantiation and copy of the data when adding the Server
header field.

Close #1613

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-19 22:32:43 +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
Damian Jarek c254b4fcfb Remove uses of the deprecated buffers function
Fix: 1607
Close: 1608

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-19 22:32:37 +02:00
Vinnie Falco d1dabebd83 Set version to 255 2019-05-04 18:48:14 -07:00
Vinnie Falco 77f3bb0764 Fix moved-from executor in idle ping timeout
fix #1599
2019-05-04 18:47:44 -07:00
Vinnie Falco 6be11913a0 Add idle ping suspend test
close #1599
2019-05-04 18:47:37 -07:00
Damian Jarek 18befa5f8c Set version to 254
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-04 17:30:25 +02:00
Damian Jarek dbadb79a75 Silence gcc-8 warning:
The warning was caused by a false positive triggered by boost::optional.
Reference:
https://github.com/boostorg/optional/issues/72

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-04 17:30:25 +02:00
Damian Jarek 7a388b7da6 Fix uninitalized memory use in deflate_stream
Reference in original zlib:
https://github.com/madler/zlib/pull/393

Resolves: #1586

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-04 17:30:23 +02: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
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 41040a21f0 Set version to 253 2019-04-20 10:19:37 -07:00
Damian Jarek 45aaf22acd Relax requirements for vector_body:
fix: #1567

std::byte is not an arithmetic type, which caused compilation to fail
when it was used in vector_body.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-20 10:19:31 -07:00
Vinnie Falco e53ccf251c Fix min/max on MSVC
fix #1578
2019-04-19 11:36:00 -07:00
Vinnie Falco 0a334d96d1 member get_executor const-correctness
fix #1559
2019-04-19 11:18:55 -07:00
Vinnie Falco db118f4dc4 Fix async_detect_ssl handler type
close #1569
2019-04-18 18:22:24 -07:00
Vinnie Falco 6e70c4260f Set version to 252 2019-04-18 16:42:30 -07:00
Damian Jarek fb7ed617cd Ensure beast is copied to libs/beast
The BUILD_DIR on Appveyor has different names sometimes, use a consistent
directory name to avoid build failures.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-18 16:42:27 -07:00
Vinnie Falco 71de05d3cc More std::string_view fixes 2019-04-18 16:15:42 -07:00
Vinnie Falco 00603397a9 Set version to 251 2019-04-15 08:22:08 -07:00
Damian Jarek 2cfe3ba1b8 Replace static_string in parser
close #1574

This change yields a modest performance improment of 1-2% by replacing
the exception-based handling of buffer overflow with one based on
regular conditional checks.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-15 08:21:48 -07:00
Damian Jarek b7a8fb5178 Fix compilation on MSVC with std::string_view
close #1573

std::string_view::iterator is not necessarily a raw pointer.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-15 08:21:48 -07:00
Damian Jarek 8703038e37 launder pointers:
close #1570

`std::launder` must be used whenever placement-new of an unknown type
is performed and the result of the placement-new expression is discarded.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-15 08:21:48 -07:00
Eelis van der Weegen 9b10f08692 detect_ssl uses bool
close #1568
2019-04-15 08:21:46 -07:00
Damian Jarek df0e9336bf Cleanup CI:
close #1558

- Parallelize submodule clone.
- Do a shallow submodule clone.
- Move submodule update code to a script.
- Build with BOOST_BEAST_USE_STD_STRING_VIEW on msvc

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-15 08:17:42 -07:00
Vinnie Falco a0932ea45c Update CHANGELOG.md 2019-04-11 14:01:51 -07:00
Vinnie Falco 0345aa194d Set version to 250 2019-04-11 12:18:10 -07:00
Mohamed El Housseine ebe52537ea Set parser status and flags even if body_limit_ has been reached
close #1556
2019-04-08 17:14:46 -07:00
Damian Jarek bc9f63f10d Cleanup endianness conversions:
close #1544

- Use Boost.Endian conversions functions.
- Remove existing private conversion functions.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-04-08 17:14:04 -07:00