Vinnie Falco
3c3f4fc52b
Revert "Tidy up a warning"
...
This reverts commit 90d2df3be3 .
2018-04-10 09:09:49 -07:00
Vinnie Falco
86342dd72b
Use executor_work_guard in composed operations:
...
fix #1076
As per Asio and Networking TS requirements, composed operations must
maintain an object of type executor_work_guard for the executor associated
with the I/O object, for the lifetime of the asynchronous operation.
This is in addition to the requirement for maintaining an object of type
executor_work_guard for the executor associated with the handler.
2018-04-10 08:03:04 -07:00
Vinnie Falco
12cc10f8bb
Revert "Tidy up calls to post()"
...
This reverts commit 5eaa2be85e .
2018-03-22 20:13:39 -07:00
Vinnie Falco
4b0c14fe5a
Use boost::is_convertible as a workaround
2018-03-13 10:47:07 -07:00
Vinnie Falco
90d2df3be3
Tidy up a warning
2018-03-11 14:22:50 -07:00
Daniel James
dabc1c8ae6
Fix BOOST_NO_CXX11_ALLOCATOR check
2018-03-11 14:22:31 -07:00
Vinnie Falco
6a34afb38a
Set version to 164
2018-03-09 09:29:18 -08:00
Vinnie Falco
c984f6c94d
Fix masking on continuation frames
2018-03-09 07:51:33 -08:00
Daniela Engert
a7b78ac1bc
fix narrowing warnings
...
Signed-off-by: Daniela Engert <dani@ngrt.de >
2018-03-04 15:13:32 -08:00
Vinnie Falco
5eaa2be85e
Tidy up calls to post()
2018-03-04 13:19:17 -08:00
Vinnie Falco
ebd036a300
Improve websocket::stream::control_callback javadoc
...
fix #1053
2018-03-01 11:32:58 -08:00
Vinnie Falco
726118468b
Add asio_handler_invoke overloads for stream algorithms:
...
fix #1012
This fixes a bug where asynchronous stream alogrithms do not
work correctly with the legacy `io_service::strand` implementation.
2018-03-01 08:31:57 -08:00
Vinnie Falco
073b53e448
Fix handler parameter javadocs
2018-02-28 15:04:54 -08:00
Vinnie Falco
dfc5a2ff67
Add move-only handler tests
2018-02-28 15:04:54 -08:00
Christos Stratopoulos
5a53bd449a
Don't copy the handler in write_some_op
2018-02-28 13:20:56 -08:00
Vinnie Falco
04ced3b954
Examples clear the HTTP message before reading
...
fix #1043
2018-02-27 08:12:54 -08:00
Vinnie Falco
5d5e58c5b4
Some basic_fields operations now give the strong exception guarantee
2018-02-26 17:09:47 -08:00
Vinnie Falco
9f094518bc
Safe treatment of zero-length string arguments in basic_fields:
...
This fixes a broken memcpy precondition when empty strings are
passed as arguments to basic_fields member functions.
2018-02-26 17:09:20 -08:00
Vinnie Falco
a8a5fa9f6c
Fix typo in release notes
2018-02-26 17:09:01 -08:00
Vinnie Falco
eae74b1c89
get_lowest_layer is a type alias:
...
fix #941 , fix #1016
`get_lowest_layer` is now a type alias for the
lowest layer instead of a struct with a nested type.
Actions required:
* Replace instances of `typename get_lowest_layer<T>::type`
with `get_lowest_layer<T>`.
2018-02-21 14:49:44 -08:00
Vinnie Falco
66f0814cfd
Tidy up some documentation
...
fix #984
2018-02-21 13:58:43 -08:00
Vinnie Falco
d79950d95c
DynamicBuffer input areas are not mutable
...
fix #1014
2018-02-21 13:19:14 -08:00
Vinnie Falco
10ce0283c2
Advanced servers support clean shutdown via SIGINT or SIGTERM
...
fix #1026
2018-02-21 12:44:11 -08:00
Vinnie Falco
a4714746dc
Examples set reuse_address(true)
...
fix #1027
2018-02-21 12:35:07 -08:00
Vinnie Falco
490b9ce893
Tidy up websocket docs
...
fix #1035
2018-02-21 12:10:26 -08:00
Vinnie Falco
8dcc6162c1
Tidy up end_of_stream javadoc
...
fix #1023
2018-02-21 08:45:08 -08:00
Vinnie Falco
c505e32210
Fix big-endian websocket masking
...
fix #1030
2018-02-21 06:35:32 -08:00
Vinnie Falco
593ccb15cd
Fix teardown for TIME_WAIT
...
fix #1024 , fix #1029
2018-02-20 04:33:43 -08:00
Vinnie Falco
b249d6f868
Fix stale link for void-or-deduced
2018-02-19 18:36:31 -08:00
Vinnie Falco
b68db30ba6
Add release notes to documentation
2018-02-19 18:36:31 -08:00
Vinnie Falco
a4eb96fcb9
Don't use typeid
2018-02-19 18:36:30 -08:00
Vinnie Falco
534ba34e7e
Tidy up bind_handler doc
2018-02-16 10:51:28 -08:00
Benjamin Roland Buch
b7750de15f
Fix fallthrough warnings
...
fix #1019
2018-02-16 10:51:28 -08:00
Vinnie Falco
ab32400d00
Fix soft-mutex assert in websocket stream:
...
Fix #1000
This resolves the assert 'ws_.wr_block_ == tok_'.
2018-02-16 10:51:28 -08:00
Benjamin Roland Buch
9f3c981d6a
Fix memory leak in advanced server examples
2018-02-14 21:24:59 -08:00
Vinnie Falco
c9bbf7bdbc
bind_handler works with boost placeholders
2018-01-26 10:12:40 -08:00
Vinnie Falco
2f03cc7895
Tidy up bind_handler doc
...
fix #985
2018-01-26 10:12:15 -08:00
Vinnie Falco
d855bdefd8
Type check completion handlers
...
fix #988
2018-01-26 08:58:19 -08:00
Vinnie Falco
38e580e49d
Add Bishop Fox interview media
2018-01-25 06:02:43 -08:00
Vinnie Falco
72cf7db931
Fix use-after-move in example request handlers
...
fix #992
2018-01-25 06:02:43 -08:00
Peter Jankuliak
4fb535ece6
Fix iterator version of basic_fields::erase
...
fix #994
2018-01-25 06:02:43 -08:00
Vinnie Falco
ad42096a9d
Avoid string_view::clear:
...
String views are cleared using assignment from
braced initializion, to avoid calling clear().
2018-01-25 06:02:42 -08:00
Vinnie Falco
2b32de6cba
Update README.md for branches
...
fix #974
2018-01-25 06:02:42 -08:00
Paul "TBBle" Hampson
0efc246466
Use boost::winapi::GetLastError() consistently:
...
This replaces a few direct calls to ::GetLastError, and also removes a
couple of duplicate calls when the value was already held locally.
2018-01-12 12:30:39 -08:00
Paul "TBBle" Hampson
035248cefb
Use make_error_code for setting an error_code from errc:
...
In Boost.System, `boost::system::errc` is a namespace
containing ints. In C++11, std::errc is an enum marked
as an `error_condition`.
`error_code::assign` is specified as taking an int only,
while make_error_code is able to deal correctly with both forms.
2018-01-12 12:30:39 -08:00
Vinnie Falco
3546eff033
Remove BOOST_VERSION checks
...
fix #722
2018-01-12 12:30:39 -08:00
Vinnie Falco
24358f784a
Disable gdb on Travis for Meltdown
2018-01-12 11:54:29 -08:00
Vinnie Falco
cc43b46c42
Refactor WebSocket errors (API Change):
...
fix #949
* New error codes are introduced for WebSocket failures
* More verbose messages for error codes
* Error codes are mapped to conditions for ease of testing
* error::failed and error::handshake_failed are deprecated (don't use)
Actions Required:
* Code which explicitly compares error_code values against the
constant `websocket::error::handshake_failed` should compare
against `websocket::condition::handshake_failed` instead.
* Code which explicitly compares error_code values against the
constant `websocket::error::failed` should compare
against `websocket::condition::protocol_violation` instead.
2018-01-12 07:35:26 -08:00
Vinnie Falco
08a9ed4c25
Add WebSocket error conditions:
...
This introduces the condition enumeration type for grouping
websocket error codes together as a convenience to callers.
2018-01-01 13:38:55 -08:00
Vinnie Falco
b86169019e
Refactor error headers:
...
The WebSocket error header file declarations are
reorganized to make it easier to move function
definitions into their own translation unit.
2018-01-01 12:17:02 -08:00