Vinnie Falco
7e37723be0
Add flat_streambuf:
...
Objects of this type meet the requirements of DynamicBuffer
and offer an additional invariant: buffer sequences returned
by data() and prepare() are always of length one.
2017-05-04 18:58:33 -07:00
Vinnie Falco
3de46de96c
Make websocket::close_code a proper enum:
...
fix #311
This changes close_code to be a proper enumeration.
2017-04-23 08:26:17 -07:00
Vinnie Falco
0128743dda
Tidy up MSVC CMake configuration
2017-04-23 08:25:57 -07:00
Vinnie Falco
ccd188ea1c
Add appveyor build script
...
Fix #75
2017-04-20 13:24:58 -07:00
Vinnie Falco
6fab138150
Fix and tidy up CMake build scripts:
...
This cleans up the Boost CMake configuration and
also fixes a bug in MSVC builds with mismatched
static versus dynamic runtime linkage.
2017-04-19 11:49:34 -07:00
Vinnie Falco
32afe415c4
Set internal state correctly when writing frames:
...
fix #300
Correctly set wr_.cont when performing synchronous frame
writes, for the case where masking and autofragment are used.
2017-04-14 19:25:05 -07:00
Vinnie Falco
fe3e20b645
Add write_frames unit test
2017-04-14 19:25:05 -07:00
Vinnie Falco
578dcd0a78
Add decorator unit test
...
fix #302
2017-04-14 19:24:57 -07:00
Vinnie Falco
aaa3733bee
Use fwrite return value in file_body
2017-04-12 18:36:59 -07:00
Vinnie Falco
df661658ee
Require Visual Studio 2015 Update 3 or later
...
fix #216
2017-04-12 18:36:59 -07:00
Sergey Lyubimov
ffb17589d0
Update CMake scripts for finding packages:
...
These changes require CMake version 3.7.2 or later.
2017-04-10 16:47:58 -07:00
Vinnie Falco
b893749e29
Remove http Writer suspend and resume feature (API Change):
...
fix #154
The resume_context parameter passed to instances
of Writer during HTTP serialization is removed.
2017-04-10 15:54:29 -07:00
Vinnie Falco
27864fb3dd
Add io_service completion invariants tests
...
fix #290
2017-03-31 10:39:11 -04:00
Florian Behrens
5663bea6cd
Add missing dynabuf_readstream member
...
fix #277
2017-03-16 07:29:39 -04:00
Vinnie Falco
0d7a551b25
Tidy up build settings
2017-03-16 07:29:39 -04:00
Vinnie Falco
0fd4030738
Move the handler, don't copy it
2017-03-16 07:29:34 -04:00
Vinnie Falco
faed9e57f2
Allow concurrent websocket async ping and writes:
...
fix #271
This modifies the websocket stream implementation's composed
operations to allow caller-initiated asynchronous pings and
frame/message writes to take place at the same time.
2017-02-27 10:50:32 -05:00
Vinnie Falco
31cda067fa
Fix race when write suspends
2017-02-27 10:50:29 -05:00
Vinnie Falco
48dd38eb55
Fix race in close frames during reads
2017-02-27 10:45:05 -05:00
Vinnie Falco
e2d1bb062b
Fix race in pings during reads
2017-02-27 10:39:53 -05:00
Florian Behrens
f0399b68c0
Fix doc link typo
2017-02-24 13:24:54 -05:00
Nik Bougalis
787b7c2158
Check ostream modifier correctly
2017-02-24 13:24:54 -05:00
Steve Brain
4fa0bf645b
Fix Writer return value documentation
2017-02-24 13:24:49 -05:00
Vinnie Falco
6406da06b9
Document type-pun in buffer_cat
2017-02-24 13:24:30 -05:00
Vinnie Falco
66cdb378f2
Fix illegal HTTP characters accepted as hex zero
2017-02-24 13:24:30 -05:00
Vinnie Falco
e64ca2fa33
Fix Body requirements doc
2017-02-22 18:15:48 -05:00
Vinnie Falco
6dfd9f9fe8
Fix compilation error in non-template class
...
fix #267
2017-02-22 18:15:48 -05:00
Vinnie Falco
fa7fea8f02
Fix race in writes during reads:
...
fix #261
This fixes a rare condition when responding to a ping or
close frame where the wr_block_ stream variable is not
correctly set for a short window of time.
2017-02-22 18:15:43 -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
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
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
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
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
Vinnie Falco
b05fa33402
Fix message constructor and special members
...
fix #196
2017-01-17 14:45:38 -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