Commit Graph
2243 Commits
Author SHA1 Message Date
Klemens 3ebff60b1a beast support per-op cancellation
- websocket supports cancellation.
 - Iterating test for ws cancellation.
 - Only terminal cancellation is forwarded by default.
 - basic_stream supports cancellation.
 - supported cancellation is documented.
 - http cancellation additions.
 - Added cancellation_slot tests to http, utils and saved_handler.
 - Added post to write.cpp, to avoid SIGSEV in test.
 - Refresher describes cancellation in more detail.
2022-10-27 22:56:19 +08:00
Klemens Morgenstern 0bf3d971a0 get-boost.sh fetches describe.
This is a new dependency in boost.json, which is uesd in examples.
2022-10-26 00:06:01 +08:00
Klemens Morgenstern f4d1936bb2 error_codes use source_location. 2022-10-26 00:06:01 +08:00
sdarwin 9473c10dde s390x architecture drone jobs 2022-10-18 01:45:32 +08:00
Klemens Morgenstern 5db6da9aa4 libs/variant2 is available for windows ci runs. 2022-10-18 00:05:36 +08:00
Klemens Morgenstern 32b56cb0b2 Set version to 341. 2022-10-14 17:20:15 +08:00
Klemens 2820d256e8 Buffers have a feature table.
Closes #891
2022-10-14 17:20:15 +08:00
Klemens 3869d472ec buffer_adaptors uses the correct begin function. 2022-10-14 17:20:15 +08:00
Klemens 9d680df683 buffer_ref allows using beast buffers with asio. 2022-10-14 17:20:15 +08:00
Klemens 606d776ebb async_read works with dynamic_buffer v2. 2022-10-14 17:20:15 +08:00
Klemens Morgenstern 73922b72f9 Set version to 340. 2022-10-13 09:26:08 +08:00
Klemens Morgenstern b0c49748a2 Support expect continue in upgrade.
Closes #264.
2022-10-13 09:26:08 +08:00
Klemens Morgenstern b30e4fbbda test-handlers use source location 2022-10-13 09:26:08 +08:00
Klemens Morgenstern 1a02413638 unquote takes s by reference.
Closes #471.
2022-10-12 09:53:42 +08:00
Klemens Morgenstern 8f74e0d464 Field function state they're case-insensitive.
Closes #516.
2022-10-12 01:42:20 +08:00
Klemens Morgenstern f10c0aae21 api version is documented in the docs
Closes #298
2022-10-11 23:37:26 +08:00
Klemens 01dd53d665 Empty header values are allowed & documented. 2022-10-10 14:39:46 +08:00
Klemens 541a6bf453 base64::decode initializes local variables.
Closes #2282
2022-10-05 10:04:05 +08:00
Klemens 4f5ec46002 Exampe CMakeLists.txt is fixed. 2022-10-04 09:17:56 +08:00
sehe 7300ef463b Removed BOOST_BEAST_USE_STD_STRING_VIEW (#2451)
Fixes #2363
2022-10-03 13:29:21 +08:00
Klemens Morgenstern 12c2d14ebc streaming JSON body is an example 2022-10-03 09:53:05 +08:00
alandefreitas bd69638e9d per-message compression options
fix #226, #227
2022-10-03 09:25:31 +08:00
Klemens 677a3e0179 Added changelog for 5ccb33b7 2022-10-03 09:18:49 +08:00
alandefreitas fbcc16301d Fix API reference 2022-10-02 22:34:36 +08:00
sdarwin c4b555e764 Switch to mac-11 in GHA 2022-10-02 21:32:39 +08:00
alandefreitas 5ccb33b71c Websocket timeout option APIs
fix #2449
2022-10-02 20:05:56 +08:00
alandefreitas 5866e50438 Add multiple content length error
fix #2468
2022-10-02 20:04:46 +08:00
sdarwin b4e0f0d560 Update CI 2022-10-02 19:56:23 +08:00
Richard Hodges 3ae7e3023f Set version to 336
closes #2513
2022-09-01 17:41:45 +02:00
Richard Hodges d86a61f458 Remove incorrect ASSERT in websocket read
fix #2264
2022-09-01 15:46:12 +02:00
Richard Hodges af79b4d0fd Set version to 335
close #2508
2022-08-24 22:44:07 +02:00
Ed Catmur 78fc61a9f7 Remove unnecessary constant_time_size for multi_buffer:
http::basic_fields::set_t::size() is unused
core::multi_buffer::list_type::size() is only compared to 1 (in shrink_to_fit()); compare iterators instead.

close #2498
2022-08-24 21:42:22 +02:00
sdarwin 177855b4bc Upgrading OS on certain drone jobs
close #2498
2022-08-24 21:40:45 +02:00
Richard Hodges 76043dec2c Set version to 334
close #2502
2022-08-16 16:01:46 +02:00
Richard Hodges f700e85b0f Set version to 333
close #2500
close #2501
2022-08-16 12:20:34 +02:00
Richard Hodges 3f7f2572b0 Workaround TSAN CI bug
fix #2499
2022-08-16 10:29:27 +02:00
alandefreitas 00293a6adb Set version to 332 2022-06-22 16:42:51 -03:00
sehe 4f3276fd70 Exclude unused zlib sources from build
Recent update zlib-1.2.11->1.2.12 included included a number of source
files in the Bjam/CMake changes that were previously excluded.

This leads to a bunch of C99 violation warnings (implicit function
declarations).

This commit excludes the culprits again, but leaves them actively
commented-out so the same mistake is less likely to happen by accident
in the future.
2022-06-22 15:10:01 -03:00
alandefreitas e0e5cbd8f9 Fix doc include file
fix #2448
2022-06-22 15:08:00 -03:00
alandefreitas 46729654c1 Remove unused method
fix #2410
2022-06-22 15:07:45 -03:00
alandefreitas eaa51201bd Fix broken links
fix #2333
2022-06-22 15:07:30 -03:00
alandefreitas 3272dc0aeb Document fields::equal_range
fix #1251
2022-06-22 15:06:39 -03:00
alandefreitas 0ed09e59d9 Fix zlib warnings
fix #2461
2022-06-22 15:06:23 -03:00
alandefreitas a634616ebc Release documentation
fix #2466
2022-06-22 15:02:23 -03:00
Utsav Munendra 34c4647caf Correct common name of example server certificate 2022-06-21 20:39:25 -03:00
Petre Pircalabu 7f6adb91f7 Fix large files transfer on Windows
The maximum number of bytes to write using TransmitFile cannot be
greater than INT_MAX - 1, otherwise the function fails with WSAEINVAL.

https://docs.microsoft.com/en-us/windows/win32/api/mswsock/nf-mswsock-transmitfile

The issue can be reproduced using the http-server-sync example, by
sending a GET request for a file larger than INTMAX.

e.g:
$ curl -v http://127.0.0.1:8080/ubuntu.iso -o ubuntu.iso
*   Trying 127.0.0.1:8080...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /ubuntu.iso HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.83.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: Boost.Beast/330
< Content-Type: application/text
< Content-Length: 3654957056
<
{ [0 bytes data]
* transfer closed with 3654957056 bytes remaining to read
  0 3485M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0
curl: (18) transfer closed with 3654957056 bytes remaining to read

Signed-off-by: Petre Pircalabu <ppircalabu@bitdefender.com>
2022-06-21 20:37:43 -03:00
alandefreitas d362b68edd Set version to 331 2022-06-21 20:36:12 -03:00
sehe c2cff2254a Remove mention of Boost Property Tree
Fix #2445

Passing mention in documentation could suggest the more apt new boost library (since
1.75.0)
2022-06-09 00:10:20 +02:00
alandefreitas 925043e1e8 Update Beast zlib streams
fix #2439
2022-06-03 17:45:32 -03:00
JackyYin ca824f607c Update zlib from 1.2.11 to 1.2.12
fix #2439

Because there is a CVE issue impact zlib before 1.2.12,
update zlib to avoid any related problems.

Please check the link below for detailed CVE information:
https://access.redhat.com/security/cve/CVE-2018-25032
2022-06-03 17:43:42 -03:00