Vinnie Falco
9f10b11eff
Set version to 1.0.0-b28
2017-02-07 19:59:14 -05:00
Vinnie Falco
195f974872
Fix HTTP split parse edge case:
...
fix #257
This fixes a problem when doing split parsing (header then body).
The problem arises when the first buffer passed to the header
parser contains exactly the full header and nothing more. The
symptom is that when parsing the body, the parse will erroneously
be considered complete.
2017-02-07 19:59:04 -05:00
Vinnie Falco
264fd41342
Restyle async result constructions
2017-02-07 19:59:03 -05:00
Vinnie Falco
572a0eb490
Split out and rename test stream classes
2017-02-07 19:59:03 -05:00
Vinnie Falco
95b6646167
Tidy up some WebSocket javadocs
2017-02-07 19:59:03 -05:00
Vinnie Falco
f6938d3760
Set version to 1.0.0-b27
2017-02-07 15:20:34 -05:00
Vinnie Falco
a6120cd8be
Update copyright dates
2017-02-07 15:20:25 -05:00
wilsonianb
c7bfe7df4a
Add documentation building instructions
2017-02-07 15:18:42 -05:00
Vinnie Falco
f6c91ce9f5
Tidy up tests and docs:
...
* Add handler_ptr test and increase coverage
* Add test for prepare_buffer
* Move is_call_possible tests to a .cpp file
* Tidy up docs and declarations
2017-02-06 11:34:29 -05:00
Vinnie Falco
f03985f3e8
Move basic_streambuf to streambuf.hpp (API Change):
...
* Also change allocator element type to char
2017-02-06 11:34:29 -05:00
Vinnie Falco
b8639a791a
Invoke callback on pings and pongs (API Change):
...
fix #248
This additionally invokes the pong callback for received pings, allowing
callers to more efficiently detect when a connection is still lively:
* pong_callback renamed to ping_callback
* Callback signature has an extra `bool` to indicate if the received
control frame is a ping or pong.
2017-02-05 18:45:22 -05:00
Vinnie Falco
06f74f05f7
Set version to 1.0.0-b26
2017-02-02 09:04:25 -05:00
Vinnie Falco
68f535f357
Tidy up warnings and tests:
...
* Enable WebSocket frame tests
* Remove read_message_max warning
* Remove permessage-deflate check offer warning
2017-02-02 08:57:17 -05:00
Vinnie Falco
4ee5fa903e
Set version to 1.0.0-b25
2017-02-01 20:05:40 -05:00
Vinnie Falco
229d3909a8
Update README.md for CppCast 2017
2017-02-01 20:05:40 -05:00
Vinnie Falco
c3e3a55bd2
Fix deflate setup bug
2017-02-01 20:05:39 -05:00
Vinnie Falco
439a224e1d
WebSocket server examples and test tidying:
...
fix #238 , fix #165
* Tidy up WebSocket echo servers
* Add WebSocket echo servers to examples
2017-02-01 20:05:39 -05:00
Vinnie Falco
29565c8bd7
Remove unnecessary include
...
fix #242
2017-02-01 20:05:39 -05:00
Vinnie Falco
caa3b39ec2
Fix 32-bit arm7 warnings
...
fix #232
2017-02-01 20:05:38 -05:00
Vinnie Falco
0474cc5df2
Better handler_ptr (API Change):
...
fix #242
* Add public constructors
* Add handler_ptr::empty()
* Add handler_ptr::element_type
* Remove make_handler_ptr free function
* Compiler error if element_type is an array type
* handler_ptr::get() returns nullptr if no object is owned
2017-02-01 20:05:38 -05:00
Vinnie Falco
ca38657aab
Fixes for websocket echo server:
...
* Decorator members are const
* Enable permessage-deflate extension
2017-01-27 20:15:31 -05:00
Vinnie Falco
797631c698
Set version to 1.0.0-b24
2017-01-27 19:48:03 -05:00
Vinnie Falco
a4509684cc
Add permessage-deflate WebSocket extension:
...
This implements the permessage-deflate WebSocket
extension as described in HyBi Working Group
draft-ietf-hybi-permessage-compression-28:
https://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-28
This extension allows messages to be compressed using
the raw "deflate" algorithm described in RFC 1951,
"DEFLATE Compressed Data Format Specification version 1.3":
https://www.ietf.org/rfc/rfc1951.txt
2017-01-27 19:46:49 -05:00
Vinnie Falco
67e965e440
Make decorator copyable
2017-01-25 09:51:44 -05:00
Vinnie Falco
42899fc317
Add optional yield_to arguments
2017-01-25 09:51:31 -05:00
Edward Hennis
61aef03703
Simplify Travis package install specification
2017-01-25 09:51:18 -05:00
Miguel Portilla
9d0d7c990d
bjam use clang on MACOSX
2017-01-25 09:51:04 -05:00
Edward Hennis
c00cd37b8a
Set version to 1.0.0-b23
2017-01-17 14:46:11 -05:00
Edward Hennis
f662e36fc8
Travis CI improvements:
...
* Update boost package URL
* Retry Travis build script
* Respect Travis's $NUM_PROCESSORS limit
* Disable sudo
* Disable autobahn tests
* Show output from the wsecho server during autobahn
2017-01-17 14:45:40 -05:00
Vinnie Falco
b05fa33402
Fix message constructor and special members
...
fix #196
2017-01-17 14:45:38 -05:00
Vinnie Falco
b4722cc27d
Add copy special members
2017-01-17 14:44:22 -05:00
Vinnie Falco
420d1c7525
Better logging in async echo server
2017-01-17 14:44:20 -05:00
Vinnie Falco
149e3a2c45
Add file and line number to thrown exceptions
2017-01-17 14:43:12 -05:00
Vinnie Falco
3e88b837db
Tune websocket echo server for performance
2017-01-17 14:40:15 -05:00
Vinnie Falco
1ab7a2f04c
Set version to 1.0.0-b22
2017-01-08 10:15:26 -05:00
Denis Andrejew
2eb4b0c6cd
Fix code sample in websocket.qbk
2017-01-08 10:15:20 -05:00
Denis Andrejew
58802f4d6d
Fix typos in design.qbk
2017-01-08 10:15:19 -05:00
Vinnie Falco
19dc4bb628
Update documentation examples
...
fix #222
2017-01-08 07:23:58 -05:00
Vinnie Falco
10dbc5b96a
Disable Boost.Coroutine deprecation warning
2017-01-07 16:07:04 -05:00
Vinnie Falco
01c76c7b5c
Fix websocket stream read documentation
2017-01-07 16:07:03 -05:00
Vinnie Falco
d152c96f45
Update README.md example programs
...
fix #219
2017-01-07 16:07:03 -05:00
Vinnie Falco
995d86fcc3
Avoid copies in handler_alloc
2017-01-07 16:07:02 -05:00
Vinnie Falco
851cb62a50
Add handler helpers
2017-01-07 16:07:02 -05:00
Vinnie Falco
114175cd1f
Implement asio dealloc-before-invoke guarantee:
...
fix #215
This change guarantees that temporary memory allocated
through the asio hooks by the Beast implementation is
deallocated before invoking the final handler when performing
composed operations.
The change is accomplished by replacing std::shared_ptr with
a thread-safe custom container handler_ptr to manage composed
operation state. The container tracks other instances which
manage the same object and resets them in a safe way before
invoking the final handler.
handler_ptr is provided as a public interface so that users of
this library can utilize the same idiom to write their own
composed operations.
2017-01-07 16:07:01 -05:00
Vinnie Falco
681db2efb8
Add missing include
2017-01-04 12:49:43 -05:00
Vinnie Falco
7db3c6eacf
Fix broken Intellisense (MSVC)
...
Fix #213
2016-12-30 09:39:51 -05:00
Vinnie Falco
09c183d112
Set version to 1.0.0-b21
2016-12-16 10:59:15 -05:00
Vinnie Falco
1cb01fed1b
Remove extraneous includes
...
fix #207
2016-12-16 10:59:05 -05:00
Vinnie Falco
62e65ed5e2
Set version to 1.0.0-b20
2016-11-15 13:09:24 -05:00
Miguel Portilla
45eaa8c8da
Increase utf8 checker code coverage
2016-11-15 13:09:18 -05:00