Damian Jarek
da61b4e52c
Move char_buffer into a separate file
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:34 +02:00
Damian Jarek
edca7dd18e
Remove redundant use of asio::coroutine in flat_stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:34 +02:00
Damian Jarek
d5f5f1467f
Enable split compilation in http::basic_fields
...
Moved functions,that are independent of template argument, into
an *.ipp file.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:33 +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
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
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
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
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
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
Simon Ebner
7e78863074
Don't use a moved-from handler:
...
close #1560
* Obtain the executor from the handler prior
to transferring ownership.
2019-04-06 13:23:12 -07:00
Damian Jarek
ce986118f8
Fix async_base immediate completion
...
`complete(false, ...)` used the wrong executor when an async operation
completed immediately, potentially executing the completion handler on
the IO executor in some cases.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-04-05 05:08:31 -07:00
Vinnie Falco
27c572fbfa
Tidy up declval in some traits
2019-04-01 17:35:44 -07:00
Vinnie Falco
4f464ccaeb
Tidy up file_stdio for VS2015
2019-03-30 14:14:59 -07:00
Denis Glazachev
24ccdd243a
Fix some typos
2019-03-30 11:12:04 -07:00
Vinnie Falco
965c21615a
MSVC uses ::fopen_s
2019-03-29 20:42:44 -07:00
Vinnie Falco
61fcd9ef6f
Refactor Jamfiles to work with release layout
2019-03-24 09:18:02 -07:00
Gregor Jasny
0033b7c1e4
Android: Use compiler pre-defined __ANDROID__
...
The ANDROID define us usually originationg from he build system
(like CMake, ndk-build, etc.). But some buildsystems like Bazel
do not set it which brakes Android platform detection.
Better use __ANDROID__ (like boost predef does) which is
predefined by the compiler if targeting Android.
2019-03-14 09:55:22 -07:00
Vinnie Falco
fdc83c981b
Fix basic_stream lowest_layer for ssl
2019-03-12 18:58:24 -07:00
Vinnie Falco
554701845c
Fix close_socket for net::basic_socket changes
2019-03-12 16:20:36 -07:00
Vinnie Falco
cfbdce3e5c
Constrain to_static_string to integers
2019-03-12 13:44:48 -07:00
Vinnie Falco
d2041c0322
Doc tidying
2019-03-08 09:33:52 -08:00
Vinnie Falco
fdf64a4550
Remove dynamic_buffer_ref:
...
* dynamic_buffer_ref is removed, because Asio / Networking
has introduced the DynamicBuffer_v2 concept which is incompatible
with Beast's storage types.
The next version of Beast (1.70) will provide changes to
interoperate with Asio / Networking's new concepts.
2019-03-07 12:56:40 -08:00
Vinnie Falco
06a42f2202
Fix stable_async_base example
2019-03-06 10:38:08 -08:00
Vinnie Falco
45353a7f04
handler_ptr is deprecated (API Change):
...
* `handler_ptr` is deprecated and should not be used.
Actions Required:
* Replace use of `handler_ptr` with `stable_async_base`
and `allocate_stable`.
2019-03-06 10:38:08 -08:00
Vinnie Falco
7f53b0f66c
detect_ssl returns a bool
...
fix #1288
2019-03-06 05:50:22 -08:00
Vinnie Falco
e073a9e7fc
Tidy up docs
2019-03-05 20:15:07 -08:00
Vinnie Falco
9f2b0ce1db
Rename to buffer_bytes
2019-03-05 11:09:53 -08:00
Vinnie Falco
6ccdcdf51d
buffer_size is in buffer_traits.hpp
2019-03-05 11:09:50 -08:00
Vinnie Falco
8e2620e2b1
Doc tidy
2019-03-05 08:00:14 -08:00
Vinnie Falco
cec63d923c
Tidy up appveyor error
2019-03-02 07:33:57 -08:00
Vinnie Falco
fca4b3ae10
make_strand is in net::
2019-03-02 07:33:57 -08:00
Vinnie Falco
a3f0ea3573
Move macro from config.hpp
2019-03-01 10:47:09 -08:00
Vinnie Falco
92ad50a8e7
Destroy abandoned websocket ops on shutdown
...
fix #1358
2019-02-27 16:44:01 -08:00
Vinnie Falco
c510662c67
Add test::stream::service
2019-02-27 14:05:16 -08:00
Vinnie Falco
22b6fa4121
Reduce instantiations in detect_ssl
2019-02-27 06:54:55 -08:00
Vinnie Falco
d0cf40d5b2
Fix as-if post
2019-02-27 06:53:22 -08:00
Vinnie Falco
8f9eed1faf
stream_base::timeout::suggested is a nested function
2019-02-27 06:52:45 -08:00
Vinnie Falco
7953ac281f
Pass references as pointers to async_initiate
2019-02-26 07:21:05 -08:00
Vinnie Falco
0647c902ac
role_type is in boost/beast/core/role.hpp (API Change):
...
This enumeration is now part of the library core and
not specific to websocket.
2019-02-26 07:20:46 -08:00
Vinnie Falco
81f33a0f89
Rename to async_base, stable_async_base
2019-02-26 07:20:08 -08:00
Vinnie Falco
d9400ce618
Refactor docs
2019-02-24 18:46:27 -08:00
Vinnie Falco
59bda5d9c6
basic_parser is abstract, not CRTP (API Change):
...
* `basic_parser` now uses pure virtual member functions instead
of the curiously recurring template pattern.
Actions Required:
* Change uses of the `basic_parser` type to omit the `Derived`
template parameter
* Classes derived from `basic_parser` no longer need to friend
the base.
* Virtual functions in the derived class may be marked `override`.
2019-02-23 11:15:59 -08:00
Vinnie Falco
d4dddec1c0
Reduce template instantiations
2019-02-23 08:56:57 -08:00
Vinnie Falco
46eb006757
Tidy up docs
2019-02-22 19:46:29 -08:00
Vinnie Falco
955354b9dd
Enable split Beast compilation for tests
2019-02-22 17:27:27 -08:00