Vinnie Falco
094f5ec5cb
Better treatment of SSL short reads:
...
fix #38
This improves the behavior when encountering a short read:
* Any stream error encountered during a read is converting into
`http::error::partial_message` if some data was received but
the message is incomplete.
* Examples squelch SSL short read errors from the logs.
2019-02-23 08:56:59 -08:00
Vinnie Falco
73c7f3ea3e
Visual Studio 2017 minimum requirement for Windows
2019-02-22 18:46:09 -08:00
Damian Jarek
d048aa8e7e
More split definitions in test::stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-02-22 17:42:44 -08:00
Vinnie Falco
955354b9dd
Enable split Beast compilation for tests
2019-02-22 17:27:27 -08:00
Damian Jarek
4a5ab9785c
Add OpenSSL installation/setup instructions
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-02-22 17:27:11 -08:00
Vinnie Falco
90b783cb62
detect_ssl, async_detect_ssl are public interfaces
2019-02-22 15:39:34 -08:00
Vinnie Falco
ee13bfad70
Fast prng is pcg
2019-02-21 13:19:23 -08:00
Vinnie Falco
6ada618c12
Check BOOST_NO_CXX11_THREAD_LOCAL
2019-02-21 11:09:02 -08:00
Vinnie Falco
d08cc82e15
Use async_initiate
2019-02-21 06:39:35 -08:00
Vinnie Falco
51994d133f
Release notes
2019-02-20 18:58:59 -08:00
Vinnie Falco
c3c3777661
Pass strand to async_accept
2019-02-20 15:30:03 -08:00
Vinnie Falco
fd4b080a4a
RatePolicy documentation
2019-02-20 15:30:03 -08:00
Vinnie Falco
28d3b41a43
websocket idle pings
2019-02-20 07:12:36 -08:00
Vinnie Falco
28f5921bd6
Set version to 216
2019-02-20 07:12:11 -08:00
Vinnie Falco
23a7bcc67e
Add RatePolicy to basic_stream
2019-02-19 16:23:30 -08:00
Vinnie Falco
ac24e58fb3
Add make_strand
2019-02-19 16:23:30 -08:00
Vinnie Falco
fc7b47fc5d
Use suggested timeouts in Websocket examples
2019-02-18 12:18:27 -08:00
Vinnie Falco
f21358186e
Add websocket::stream timeouts
2019-02-18 12:18:27 -08:00
Vinnie Falco
dfd08bf6ae
Refactor websocket::stream operations
2019-02-18 12:18:27 -08:00
Vinnie Falco
00e8c381cd
Examples use ssl_stream
...
fix #1455
2019-02-16 15:09:35 -08:00
Vinnie Falco
22dcb4a3cb
example/cppcon2018 is removed:
...
* Replaced by websocket-chat-multi
2019-02-16 15:09:35 -08:00
Vinnie Falco
f41363c60c
Add async_op_base::invoke
2019-02-16 15:09:33 -08:00
Vinnie Falco
fdaf2ea7e1
Rename to async_op_base::invoke_now
2019-02-16 13:36:01 -08:00
Vinnie Falco
a781285e2f
Add experimental test/handler.hpp
2019-02-16 13:36:01 -08:00
Vinnie Falco
18447553ca
Examples use bind_front_handler
2019-02-14 17:28:54 -08:00
Vinnie Falco
92add2afa6
bind_front_handler works with member functions
2019-02-14 16:16:04 -08:00
Vinnie Falco
d410b429c0
Remove bind_back_handler
2019-02-14 16:11:14 -08:00
Vinnie Falco
5ed9f7712e
basic_stream uses boost::shared_ptr
2019-02-14 12:54:32 -08:00
Vinnie Falco
ebc5246c47
Rewrite the echo-op example
...
fix #1450
2019-02-13 14:14:34 -08:00
Vinnie Falco
96b2944f70
Add detail::bind_continuation
2019-02-13 12:59:24 -08:00
Vinnie Falco
b6f215a00d
handler binders use the associated allocator
2019-02-12 05:55:07 -08:00
Vinnie Falco
45d722874f
Use tcp_stream, HTTP timeouts in advanced servers
2019-02-10 11:43:15 -08:00
Vinnie Falco
6ee1a88292
Use tcp_stream in WebSocket server examples
2019-02-10 11:42:01 -08:00
Vinnie Falco
920909673a
Use tcp_stream in WebSocket client examples
2019-02-10 11:42:01 -08:00
Vinnie Falco
cab2472ee9
Use timeouts in HTTP client examples
2019-02-10 11:42:01 -08:00
Vinnie Falco
5b97fbb966
Use timeouts in HTTP server examples
2019-02-10 11:42:01 -08:00
Vinnie Falco
9b14774ada
basic_stream subsumes stranded_stream:
...
* All functionality of stranded_stream is folded into basic_stream
* tcp_stream is an alias for basic_stream with tcp
* The tests are expanded to produce full coverage
* Timeout implementation is simplified
2019-02-10 11:42:01 -08:00
Vinnie Falco
0ce8ebbefd
Fix posix_file::close handling of EINTR:
...
fix #1445
These changes optimize for Linux at the possible
expense of non-conforming platforms like HP-UX.
2019-02-10 05:52:12 -08:00
Vinnie Falco
168f674b4a
Improved websocket stream documentation
...
fix #1213
2019-02-10 05:51:42 -08:00
Vinnie Falco
44ed20aa2c
buffers_front tests
2019-02-09 06:58:59 -08:00
Vinnie Falco
b8aa6be7fd
stranded_socket tests and tidy
2019-02-08 10:58:23 -08:00
Vinnie Falco
f15bbf10b4
flat_stream tests and tidy
2019-02-08 10:57:58 -08:00
Vinnie Falco
98834967c3
dynamic_buffer_ref tests and tidy
2019-02-08 10:57:41 -08:00
Daniel Sewtz
cd28598e5b
Fixes to rfc7230:
...
fix #1435 , fix #1438
* Example and test can be built on msvc v141 15.9.6
using /std:c++17 and BOOST_BEAST_USE_STD_STRING_VIEW.
* changed string_view.to_string() to std:string(string_view),
awaiting availability of Library Fundamentals TS here.
* Reactivated relevant tests to param_list. #ifdef 0 test
exhibited same assertion failed error in debug mode.
Now fixed in DEBUG on msvc v141 15.9.6 with
BOOST_BEAST_USE_STD_STRING_VIEW and /std:c++17.
* Looked up http paramters (transfer-encoding, etc.)
and changed tests as well as fixing comment to
match specs.
2019-02-07 17:37:18 -08:00
Vinnie Falco
55d319a9d9
multi_buffer::clear preserves capacity
2019-02-07 17:37:18 -08:00
Vinnie Falco
c3125e8358
flat_buffer::clear preserves capacity
2019-02-07 17:37:18 -08:00
Vinnie Falco
27a6f57200
Add flat_stream:
...
flat_stream, previously in _experimental, is now a public API.
2019-02-07 17:37:18 -08:00
Vinnie Falco
3896f9aa9c
Add stranded_stream
2019-02-07 17:37:18 -08:00
Vinnie Falco
812a19706a
Improvements to test::stream:
...
The behavior of the test stream when either
end is destroyed or closed is well-defined.
2019-02-06 21:21:25 -08:00
Vinnie Falco
dc02f63050
close_socket is in stream_traits.hpp
2019-02-05 21:03:20 -08:00