Commit Graph

1930 Commits

Author SHA1 Message Date
Vinnie Falco
1c96e1604c Use Boost master on Appveyor 2017-07-20 08:15:29 -07:00
Vinnie Falco
beead1a297 Split common tests to a new project 2017-07-20 08:15:29 -07:00
Vinnie Falco
edeb44617b Remove BodyReader::is_deferred (API Change):
The is_deferred nested type is removed from the BodyReader
requirements.

Performance for sending messages with `file_body` was cut
almost in half with is_deferred as `std::true_type` since
it caused double the number of socket writes. If the
deferred behavior is absolutely necessary, callers can get
the same effect by manually sending the headers first.

Actions Required:

* Callers who need the behavior of is_deferred as `std::true_type`
  should manually construct a serializer and serialize the header
  first, followed by the body.
2017-07-20 08:15:29 -07:00
Vinnie Falco
bf59634bc2 Change BodyReader, BodyWriter requirements (API Change):
Actions Required:

* Change user defined instances of BodyReader and BodyWriter
  to meet the new requirements.
2017-07-20 08:15:29 -07:00
Vinnie Falco
2b2e99d69b Set version to 67 2017-07-20 08:15:29 -07:00
Vinnie Falco
bb1dd72638 Group common example headers 2017-07-20 08:15:29 -07:00
Vinnie Falco
84d7601bdf Rename to http-server-fast 2017-07-20 08:15:29 -07:00
Vinnie Falco
e7b01dc5c4 control_callback replaces ping_callback (API Change):
fix #322

The new callback is informed of all frame types including close.

Actions Required:

* Change calls to websocket::stream::ping_callback to use
  websocket::stream::control_callback

* Change user defined ping callbacks to have the new
  signature and adjust the callback definition appropriately.
2017-07-20 08:15:28 -07:00
Vinnie Falco
44824a4166 Use boost::string_view 2017-07-20 08:15:28 -07:00
Vinnie Falco
cc1c02e236 Merge stream_base to stream and tidy 2017-07-20 08:15:28 -07:00
Vinnie Falco
fc15f5e0b2 Add http-server-small example 2017-07-20 08:15:28 -07:00
Vinnie Falco
3570895391 Fix doc example link 2017-07-20 08:15:28 -07:00
Vinnie Falco
2daf3bf35b Set version to 66 2017-07-20 08:15:28 -07:00
Vinnie Falco
9f0dbb4265 Squelch spurious warning on gcc 2017-07-20 08:15:28 -07:00
Vinnie Falco
e389b853c5 Documentation work 2017-07-20 08:15:28 -07:00
Vinnie Falco
e5f1d4d010 Add http-server example 2017-07-20 08:15:28 -07:00
Vinnie Falco
522d3bf378 basic_fields optimizations 2017-07-20 08:15:28 -07:00
Vinnie Falco
9f7f36a3e9 Add header aliases 2017-07-20 08:15:28 -07:00
Vinnie Falco
c2d3532da2 Tidy up message piecewise ctors 2017-07-20 08:15:28 -07:00
Vinnie Falco
dab5d3bc12 Handle bad_alloc in parser 2017-07-20 08:15:28 -07:00
Vinnie Falco
f2e8af23f4 Fix costly potential value-init in parser 2017-07-20 08:15:28 -07:00
Vinnie Falco
f0e32882e2 Make consuming_buffers smaller 2017-07-20 08:15:28 -07:00
Vinnie Falco
86244c8dcf Add serializer request/response aliases 2017-07-20 08:15:28 -07:00
Vinnie Falco
518ae23383 string_param optimizations 2017-07-20 08:15:28 -07:00
Vinnie Falco
90a88a9361 Set version to 65 2017-07-20 08:15:28 -07:00
Vinnie Falco
c441684bc3 Enable msvc warnings in Jamfile 2017-07-20 08:15:28 -07:00
Vinnie Falco
8f4e7fd0a0 Fix unused variable warnings 2017-07-20 08:15:28 -07:00
Vinnie Falco
58c976ea73 Enable unused variable warning on msvc cmake 2017-07-20 08:15:28 -07:00
Vinnie Falco
d70a78bbda Fix integer warnings 2017-07-20 08:15:28 -07:00
Vinnie Falco
6535d1734d Fix narrowing in deflate_stream 2017-07-20 08:15:28 -07:00
Vinnie Falco
2900c26585 Fix narrowing in inflate_stream 2017-07-20 08:15:28 -07:00
Vinnie Falco
31b59f0b0f Fix narrowing in ostream 2017-07-20 08:15:28 -07:00
Vinnie Falco
ef493d4489 Fix narrowing in static_ostream 2017-07-20 08:15:28 -07:00
Vinnie Falco
b5c69ff7c7 Fix integer types in deflate_stream::bi_reverse 2017-07-20 08:15:28 -07:00
Vinnie Falco
246f55321c Enable narrowing warning on msvc cmake 2017-07-20 08:15:28 -07:00
Vinnie Falco
cbf4182dd1 Set version to 64 2017-07-20 08:15:28 -07:00
Vinnie Falco
e477574681 Remove make_serializer (API Change):
Actions Required:

* Replace calls to make_serializer with variable declarations
2017-07-20 08:15:28 -07:00
Vinnie Falco
67f595eea8 Add link_directories to cmake 2017-07-20 08:15:28 -07:00
Vinnie Falco
b2ab40f09c Doc tidying
fix #521, fix #524
2017-07-20 08:15:28 -07:00
Vinnie Falco
bd4d1cbe91 async_write requires a non-const message:
This is necessary to meet the requirements for
asynchronous operations:

http://www.boost.org/doc/libs/1_64_0/doc/html/boost_asio/reference/asynchronous_operations.html

Specifically, that the caller must ensure the validity of the message
argument until the handler is invoked.

object
2017-07-20 08:15:28 -07:00
Vinnie Falco
77a4c36aeb Better User-Agent in examples
fix #523
2017-07-20 08:15:28 -07:00
Vinnie Falco
67e3e801cb Exemplars are compiled code
fix #455
2017-07-20 08:15:28 -07:00
Vinnie Falco
a8c2f54534 Simplify websocket write_op
fix #358
2017-07-20 08:15:28 -07:00
Vinnie Falco
4a68e3a1ce Simplify ssl teardown composed op
fix #358
2017-07-20 08:15:28 -07:00
Vinnie Falco
6d489b4658 Simplify buffered_read_stream composed op
fix #358
2017-07-20 08:15:28 -07:00
Vinnie Falco
9ca2ca7db0 Set version to 63 2017-07-20 08:15:28 -07:00
Mike Ellery
ded950a052 Control running with valgrind explicitly 2017-07-20 08:15:28 -07:00
Vinnie Falco
65b127d2e6 Tidy up Jamfiles 2017-07-20 08:15:28 -07:00
Vinnie Falco
26b5e91725 Tidy up CMakeLists.txt 2017-07-20 08:15:28 -07:00
Vinnie Falco
3ff585d36e Only run the tests under ubasan 2017-07-20 08:15:28 -07:00