Commit Graph

1930 Commits

Author SHA1 Message Date
Vinnie Falco
ad2cdf0281 Tidy up msvc-14 workaround in multi_buffer 2018-12-19 20:59:20 -08:00
Vinnie Falco
49c5f7c30f Don't include OpenSSL for core snippets 2018-12-19 20:59:20 -08:00
Vinnie Falco
cf06a8dd6a Adjust CI scripts for superproject changes 2018-12-19 20:59:19 -08:00
Vinnie Falco
c4813a5ac7
Set version to 199 2018-12-14 05:39:14 -08:00
Vinnie Falco
b0f86ea001 Fix Appveyor badge links 2018-12-14 05:37:41 -08:00
Vinnie Falco
e17a92f2a8 Workarounds for msvc-14 2018-12-13 19:38:44 -08:00
Vinnie Falco
926065d273
Set version to 198 2018-12-12 19:32:26 -08:00
Vinnie Falco
d0183da6d0 Tidy up buffers_prefix and tests 2018-12-12 19:32:22 -08:00
Vinnie Falco
f0cbf8276e Tidy up bind_handler tests 2018-12-12 19:32:22 -08:00
Vinnie Falco
2afe929bb7 Fix bind_handler, bind_front_handler:
This tidies up small corner cases and bugs with
the bind_handler and bind_front_handler wrappers:

* Legacy allocation hooks are deleted
* Fixes for bind_front_handler specializations
* Decay bound arguments first, to reduce template instantiations
* Proper moving and forwarding of bound arguments and call parameters
2018-12-12 19:32:22 -08:00
Vinnie Falco
120d5481e2 Tidy up core files 2018-12-12 19:32:22 -08:00
Vinnie Falco
d8a23776d4 Tidy up experimental files 2018-12-12 19:32:22 -08:00
Vinnie Falco
0a583a331d Add buffer_traits.hpp, buffers_type 2018-12-12 19:32:22 -08:00
Vinnie Falco
b6eb988694 saved_handler maintains a work_guard (websocket):
* Tidy up and comment asserts

* `pausation` is renamed to saved_handler

* A work guard on the handler's associated executor
  is maintained for the lifetime of the store handler.
2018-12-12 19:32:22 -08:00
Vinnie Falco
8ea282ee5e flat_static_buffer improvements (API Change):
* Revise documentation
* Specify exception safety
* Mark more functions noexcept

API Changes:

* flat_static_buffer::reset is deprecated

Actions Required:

* Replace calls to flat_static_buffer::reset with
  flat_static_buffer::clear
2018-12-12 19:32:22 -08:00
Vinnie Falco
3e695d588a static_buffer improvements:
* Revise documentation
* Specify exception safety
* Mark more functions noexcept
2018-12-12 19:32:21 -08:00
Vinnie Falco
4fec064ad8 Files return errc::bad_file_descriptor (API Change):
fix #1356

* File functions return errc::bad_file_descriptor
  instead of errc::invalid_argument.

Actions Required:

* Callers checking for errc::invalid_argument from calls to
  file APIs should check for errc::bad_file_descriptor instead.
2018-12-12 19:32:21 -08:00
Vinnie Falco
8262405064 multi_buffer improvements:
fix #1345

* Revise documentation
* Add reserve() member
* Add max_size() member
* Add shrink_to_fit() member
* Respect Allocator max_size
* Specify exception safety
2018-12-12 19:32:21 -08:00
Vinnie Falco
11c71d118f flat_buffer improvements:
fix #1345

* Revise documentation
* Add reserve() member
* Add max_size() member
* Respect Allocator max_size
* Specify exception safety
2018-12-12 19:32:21 -08:00
Vinnie Falco
5a42490921 Squelch Boost.Coroutine deprecation warning 2018-12-12 19:32:21 -08:00
Vinnie Falco
010fb4b08c
Set version to 197 2018-12-06 15:53:18 -08:00
Damian Jarek
776462a8a4 Use a struct instead of pair in flat_stream
No need to instantiate a pair and a custom struct has better member
names.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-12-06 15:53:13 -08:00
Vinnie Falco
35e4f321bc Refactor HTTP operations (API Change):
* Revise stream algorithm javadocs

* HTTP stream algorithms now use beast::read and
  beast::async_read with a custom completion condition.

API Changes:

* HTTP stream algorithms return the number of bytes transferred
  from the stream. Previously, they returned the number of bytes
  consumed by the parser.

Actions Required:

* Callers depending on the return value of http::read or
  http::async_read overloads should adjust the usage of
  the returned value as needed.
2018-12-06 15:50:26 -08:00
Vinnie Falco
c11682032b Crawler example clears the response before each read:
fix #1100

Unfortunately the example still seems to hang, tested
with 20 threads.
2018-12-06 15:50:24 -08:00
Brett Robinson
88eef1e9e3 Improvements to echo-op example:
close #1347

* Set SO_REUSEADDR in listener
* Use newline as the delimiter in async_read_until
* Add arg parsing and exit status to echo-op example
2018-12-03 17:08:40 -08:00
Vinnie Falco
4b71411551
Set version to 196 2018-12-03 14:19:58 -08:00
Damian Jarek
f90712d678 Don't collect coverage of experimental code:
close #1344

Code from beast/_experimental will be ignored when collecting coverage.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-12-03 14:19:52 -08:00
Damian Jarek
34037d538e Simplify handler_ptr:
Replace aligned_union in handler_ptr with the built-in one to reduce
the number of template instantiations and remove the reinterpret_casts
that were required.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2018-12-02 20:23:18 -08:00
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