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
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