Commit Graph
601 Commits
Author SHA1 Message Date
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
Vinnie Falco 7b8149cfd4 Move benchmarks to a separate project 2017-07-20 08:15:27 -07:00
Vinnie Falco 9c4b3ed2a7 Only build and run tests in variant=coverage 2017-07-20 08:15:27 -07:00
Vinnie Falco 3cb1451a43 Don't use cached Boost 2017-07-20 08:15:27 -07:00
Vinnie Falco 9ff967ee29 Put num_jobs back up on Travis 2017-07-20 08:15:27 -07:00
Vinnie Falco e5f0774687 Use std::to_string instead of lexical_cast
fix #518
2017-07-20 08:15:27 -07:00
Vinnie Falco 1aede9a81e Set version to 62 2017-07-20 08:15:27 -07:00
Vinnie Falco 3efe8cc9dd Put slow tests back for coverage builds 2017-07-20 08:15:27 -07:00
Vinnie Falco 0a674b1b52 Doc tidy 2017-07-20 08:15:27 -07:00
Vinnie Falco f4c65a5ba6 Squelch harmless not_connected errors 2017-07-20 08:15:27 -07:00
Vinnie Falco 5613ce7e97 Add http::is_fields trait
fix #515
2017-07-20 08:15:27 -07:00
Vinnie Falco 56a561da9a message::prepare_payload replaces message::prepare (API Change):
Actions Required:

* Change calls to msg.prepare to msg.prepare_payload. For messages
  with a user-defined Fields, provide the function prepare_payload_impl
  in the fields type according to the Fields requirements.
2017-07-20 08:15:27 -07:00
Vinnie Falco f9f6e1e0cc Refine FieldsReader concept (API Change)
* FieldsReader now requires chunked() and keep_alive()

* serializer logic calls into the reader to calculate
  the message metadata

* Removed some of the previous requirements of FieldsReader

Actions Required:

* Implement chunked() and keep_alive() for user defined FieldsReader types.
2017-07-20 08:15:27 -07:00
Vinnie Falco 087844c487 Narrow the use of Fields parameters:
Every interface or implementation which operates on a templated
type Fields is evaluated to determine if basic_fields<Allocator>
is more appropriate, and changed if so.
2017-07-20 08:15:27 -07:00
Vinnie Falco 50902c3938 parser requires basic_fields (API Change):
* `parser` is now templated on Allocator

* `parser` only produces messages using `basic_fields<Allocator>`
  as the Fields type.

* message-oriented read and async_read only work on messages
  using basic_fields as the Fields type.

Actions Required:

* Callers using `parser` with Fields types other than basic_fields
  will need to create their own subclass of basic_parser to work
  with their custom fields type.
2017-07-20 08:15:27 -07:00
Vinnie Falco 72ce21927c Avoid explicit operator bool for error 2017-07-20 08:15:27 -07:00
Vinnie Falco 4d393f4c2a Clear the error faster 2017-07-20 08:15:27 -07:00
Vinnie Falco fc09a4cad1 Tidy up namespaces in examples 2017-07-20 08:15:27 -07:00
Vinnie Falco c3e2de29ef Doc fixes and tidy 2017-07-20 08:15:27 -07:00
Vinnie Falco d5f15976e7 Tidy up test build scripts and projects 2017-07-20 08:15:27 -07:00
Vinnie Falco 79eb97fbd6 Add server-framework tests 2017-07-20 08:15:27 -07:00
Vinnie Falco e4ed62df0b Increase detail::static_ostream coverage 2017-07-20 08:15:27 -07:00
Vinnie Falco ccf7412eaf Remove libssl-dev from a Travis matrix item
fix #508
2017-07-20 08:15:27 -07:00
Vinnie Falco d4cd46314a Set version to 61 2017-07-20 08:15:27 -07:00
Vinnie Falco abed397bc0 Don't run slow tests on certain targets 2017-07-20 08:15:27 -07:00
Vinnie Falco 2ee6646c60 Use one job less on CI 2017-07-20 08:15:27 -07:00
Vinnie Falco 0a4f964811 Tidy up resolver calls 2017-07-20 08:15:27 -07:00
Vinnie Falco a4a4121444 Add multi_port to server-framework 2017-07-20 08:15:27 -07:00
Vinnie Falco f6e0e5ef47 Tidy up http-crawl example
fix #513
2017-07-20 08:15:27 -07:00
Vinnie Falco 8b5f5c6feb Reorganize SSL examples 2017-07-20 08:15:27 -07:00