Commit Graph
1402 Commits
Author SHA1 Message Date
Damian Jarek 587929edf6 Remove unused type_traits
close #1337

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-12-02 19:51:34 -08:00
Vinnie Falco b3a8e6edb5 Tidy up calls to placement new 2018-12-02 19:48:42 -08:00
Vinnie Falco 397c388e18 Set version to 195 2018-12-02 19:00:26 -08:00
Vinnie Falco 7005f6b918 Documentation work 2018-12-02 17:52:04 -08:00
Vinnie Falco 773048c551 Simplify multi_buffer and static_buffer sequences 2018-12-02 17:52:01 -08:00
Vinnie Falco f995fd41a3 net is a namespace alias for boost::asio:
The namespace alias beast::net replaces boost::asio in all code
and documentation.
2018-12-02 17:51:43 -08:00
Vinnie Falco a5739c3ea0 Set version to 194 2018-12-01 04:41:05 -08:00
Vinnie Falco f18764424c Saved handlers are dispatched 2018-12-01 04:40:59 -08:00
Vinnie Falco 29cf6ce61f Dynamic buffers improvements:
fix #1305

Applies to:

    flat_buffer
    flat_static_buffer
    multi_buffer
    static_buffer

Changes:

* Revised all javadocs
* Move construction does not invalidate in some cases
* non-const data() returns a mutable buffer sequence
* Add cdata() to also return constant readable bytes
* Eligible member functions are declared noexcept
2018-11-30 13:46:56 -08:00
Brett Robinson eb588ff82c Tidy up ssl_stream (experimental):
fix #1323, close #1328

* Fix whitespace
* Remove ssl::context pointer
* Use implicit move ctor and assignment operator
2018-11-28 13:46:40 -08:00
Damian Jarek 69f3e4d8fb Don't use-after-free in test:
fix #1327

Move construction of a queued completion handler was
accessing destroyed data.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-28 13:34:47 -08:00
Vinnie Falco 49cdabca19 Add net namespace alias 2018-11-27 10:24:24 -08:00
Vinnie Falco 2b16c50321 http::async_read returns the right byte count on error
fix #1223
2018-11-27 10:09:19 -08:00
Vinnie Falco 770308cdcc Set version to 193 2018-11-27 08:09:44 -08:00
Vinnie Falco 0a38da5b7a Ignore experimental files in coverage 2018-11-27 08:09:40 -08:00
Damian Jarek 8930d437b5 Enable explicit instantiation of websocket::stream:
fix #1279, close #1319

This enables users to improve compilation performance by explicitly
instantiating the stream template in another TU.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-26 18:38:09 -08:00
Damian Jarek 650ddd07c1 Tidy up test::stream:
fix #1308, close #1321

* test::stream will no longer include asio::tcp::ip transitively.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-26 16:04:00 -08:00
Damian Jarek 836042fd24 Fix test::stream async_result transformation:
close #1322

async initiating functions must return init.result.get(). Returning the
result of post caused a compilation failure for custom completion tokens.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-26 16:02:44 -08:00
Brett Robinson f8b3ae1186 Update ssl_stream signatures for networking changes
fix #1247, close #1323
2018-11-26 16:00:58 -08:00
Vinnie Falco e57c74b56c Set version to 192 2018-11-26 15:30:53 -08:00
Vinnie Falco 02fb4983f6 Fixes to timeout services (experimental) 2018-11-26 15:30:49 -08:00
Vinnie Falco 5cddf63e3b Issues are stale after 30 days 2018-11-26 15:30:49 -08:00
Vinnie Falco cd07e5bce8 Fix link in docs
fix #1296
2018-11-26 15:30:49 -08:00
Vinnie Falco 2cdaf51119 http::message is not-a boost::empty_value
fix #1306
2018-11-26 15:30:48 -08:00
Vinnie Falco 5bff4ed8ab Tidy up warnings and deprecated usage:
fix #1290

* BOOST_ASIO_NO_DEPRECATED=1 is now set
* Fix various warnings from the Boost regression test matrix
* Fix a bug in advanced servers when checking for a timeout
2018-11-26 15:30:48 -08:00
Damian Jarek c0e5d1bd76 Use mp11::integer_sequence
Close #1317

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-26 15:30:48 -08:00
Vinnie Falco d09d6a2063 Documentation qbk fixes and edits:
* Fix broken link
* More concepts
2018-11-26 15:30:44 -08:00
Vinnie Falco c0695db877 Merge master into develop 2018-11-26 15:26:51 -08:00
Vinnie Falco 320037a6bc Set version to 189-hf1 boost-1.69.0 2018-11-26 12:19:22 -08:00
Vinnie Falco a5d5c7500a example/cppcon2018 only requires C++11 2018-11-26 12:04:35 -08:00
Vinnie Falco cf6021a355 Fix broken doc link 2018-11-26 12:04:03 -08:00
Vinnie Falco 4a2fd11fa9 Set version to 191 2018-11-22 18:34:30 -08:00
Vinnie Falco 7b93cca28a example/cppcon2018 only requires C++11 2018-11-22 18:34:25 -08:00
Vinnie Falco e0b3aa7745 Fix warning in is_ssl_handshake 2018-11-22 18:34:09 -08:00
Vinnie Falco 2585625459 Fix static_string uninitialized warning 2018-11-22 08:08:55 -08:00
Damian Jarek b9eb1d75d9 Fix buffers_cat uninitialized warning
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-22 08:07:10 -08:00
Damian Jarek 13322fa4bb Use mp11 in detail::variant
Reduce compilation cost for all components dependent on variant.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-22 07:39:26 -08:00
Damian Jarek 98ff568371 Use lean_tuple in bind_handler, bind_front_handler 2018-11-21 12:47:59 -08:00
Damian Jarek d40255b357 Use lean_tuple in buffers_cat
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-21 12:47:38 -08:00
Damian Jarek b97169f26b Add detail::lean_tuple
Provides a subset of std::tuple functionality, for internal use
to reduce the resources required during compilation.

Does not support reference-like semantics on assignment.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-21 12:47:38 -08:00
Damian Jarek 65827558b8 Simplify some type traits:
Several type traits are simplified and optimized to
reduce compile time and memory consumption.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-21 12:47:38 -08:00
Vinnie Falco 15dd535c24 Use bind_front_handler:
The implementation uses bind_front_handler to reduce the
resources consumed when instantiating templates during
compilation.
2018-11-21 12:47:38 -08:00
Vinnie Falco d581bcc348 Add bind_front_handler:
This works similarly to bind_handler, and can help with reducing
template instantiations and compiler memory usage (since it does
not need to support placeholders).

A specialization for the most common case `void(error_code, size_t)`
is provided to minimize instantiation cost.
2018-11-21 12:47:38 -08:00
Damian Jarek 868ca0f470 Add mp11 to CI build
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-21 12:47:38 -08:00
Vinnie Falco 9666178957 Fix Doxygen configuration 2018-11-21 12:10:52 -08:00
Vinnie Falco d4c5dc2747 Set version to 190 2018-11-20 20:51:51 -08:00
Vinnie Falco 6ffef38dc4 Fix visibility warnings in test 2018-11-20 20:51:45 -08:00
Damian Jarek 5ade2a5050 Tidying:
fix #1311, fix #1310, fix #1309

* Remove unused include directive
* Remove redundant static_assert
* Remove redundant use of bind_handler

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-11-20 18:07:35 -08:00
Damian Jarek 9816d61f38 Improve compilation of tests for continuous integration:
fix #1293

* Build ASIO's non-template entities into a static library
  to reduce the compiler's memory usage during test compilation.

* Retry as single-threaded build after the first build failure.
2018-11-20 18:07:33 -08:00
Vinnie Falco c18f3f0ef1 Rename to _experimental directory 2018-11-12 06:52:39 -08:00