Commit Graph

2208 Commits

Author SHA1 Message Date
0c7d9cf98f Rework as esp-idf component 2022-07-05 10:50:57 +02:00
00293a6adb Set version to 332 2022-06-22 16:42:51 -03:00
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
e0e5cbd8f9 Fix doc include file
fix #2448
2022-06-22 15:08:00 -03:00
46729654c1 Remove unused method
fix #2410
2022-06-22 15:07:45 -03:00
eaa51201bd Fix broken links
fix #2333
2022-06-22 15:07:30 -03:00
3272dc0aeb Document fields::equal_range
fix #1251
2022-06-22 15:06:39 -03:00
0ed09e59d9 Fix zlib warnings
fix #2461
2022-06-22 15:06:23 -03:00
a634616ebc Release documentation
fix #2466
2022-06-22 15:02:23 -03:00
34c4647caf Correct common name of example server certificate 2022-06-21 20:39:25 -03:00
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
d362b68edd Set version to 331 2022-06-21 20:36:12 -03:00
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
925043e1e8 Update Beast zlib streams
fix #2439
2022-06-03 17:45:32 -03:00
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
2fdbc2cb01 Update Drone - clang-14 and gcc-12 2022-06-03 17:39:42 -03:00
00b5c92b2d Update GHA, remove windows-2016 2022-06-03 17:35:37 -03:00
5799f159c5 typo
The man's name is Alexandrescu
2022-05-22 23:21:26 +02:00
87ddb16151 Examples use http::message_generator 2022-05-21 22:12:13 -07:00
740879a995 Add http::message_generator 2022-05-21 22:12:13 -07:00
84e689c447 Add buffers_generator 2022-05-21 22:12:13 -07:00
344c10ff1e serializer::is_done is const 2022-05-21 22:12:13 -07:00
746c1bb598 silence nodiscard warning in test 2022-05-21 22:12:13 -07:00
d3f24157b8 silence unreachable code warning 2022-05-21 22:12:13 -07:00
6c9e9ea243 Tests are fat binaries 2022-05-21 22:12:13 -07:00
9201210d5e fields_alloc does not leak
fix #2431, close #2432
2022-05-21 18:15:33 -07:00
9d23bec2bc Use core string_view
fix #2417

This improves inter-conversion between string_view implementations. Some observable differences for users:
 - core::string_view no longer supports the .to_string() or .clear() extensions from Utility
 - code that relied on .max_size() returning .size(), needs to be fixed to .size() instead
 - remove_suffix() and remove_prefix() were more lenient than the standard specs; be sure you don't rely on it clamping the argument to valid range
 - BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS no longer suppresses conversions to std::string
 - core::string_view adds .contains() and various bugs fixed
2022-05-10 02:47:28 +02:00
90e37ae40b return statement to exit reading loop
Merges PR#2414

I used this example to start building my WebSocket application, however, I noticed that upon removing the echoing in the on_read method, the server repeatedly throws errors without exiting the method.

You can recreate this problem by replacing the async_write with do_write and cause any error (i.e. client reloads the page).

Adding a return statement here would make debugging for future changes much easier and it wouldn't harm the existing echoing in any way.
2022-04-26 23:41:25 +02:00
95d9587ea7 Use span from Boost.Core 2022-04-23 00:28:26 -04:00
24275ac0c6 Use static_string from Boost.StaticString 2022-04-17 12:30:52 -04:00
17141a331a Set version to 330 boost-1.80.0.beta1 boost-1.80.0 2022-03-16 19:23:34 +01:00
e3fa77a4a4 Update release notes for Boost 1.79 2022-03-16 19:23:31 +01:00
a332f55d63 Set version to 329
close #329
boost-1.79.0.beta1 boost-1.79.0
2022-03-09 16:40:43 +01:00
6ff7beae48 Add missing include for file_body test
close #2391
2022-03-09 16:35:24 +01:00
5bdd1efb8b Set version to 328 2022-01-14 15:36:20 +01:00
24980cba03 Add ARM64 builds to drone CI
close #2375
2022-01-14 15:35:12 +01:00
29b5f11623 Set version to 327 2022-01-11 14:22:01 +01:00
8381336074 Fix async_base documentation link
closes #2217
2022-01-11 14:20:07 +01:00
b175ca892e Set version to 326
close #2373
2022-01-10 19:20:10 +01:00
9a4d48c2d5 Correct erroneous version market in CHANGELOG 2022-01-10 17:47:29 +01:00
c721edfedd Remove GitHub stalebot 2022-01-10 17:45:52 +01:00
a593738e98 Set version to 325
close #2367
2021-12-22 12:04:12 +01:00
b5a94db2a5 WebSocket handshake response is deterministic on failure:
Add test for websocket handshake failure HTTP response

fix #2364
close #2365
2021-12-22 12:00:17 +01:00
55d2ceb627 Set version to 324
close #2357
close #2280
close #2360
2021-12-10 19:07:39 +01:00
6bf9c882a4 Fix open append mode for file_posix 2021-12-10 17:24:03 +01:00
cf29ecdb63 Fix open append mode for file_win32 2021-12-10 17:22:50 +01:00
88d5deec0f Add tests for file open in append/append_existing mode 2021-12-10 17:15:13 +01:00
fb8f57a9e5 Fix file open with append/append_existing flag on Windows 2021-12-10 17:14:16 +01:00
1405b5a8eb Set version to 323
close #2356
2021-12-09 14:27:32 +01:00
2c06024aa3 Fix clang-cl UTF8 path handling for file_win32:
For file_win32, check _WIN32 instead of BOOST_MSVC

refs #2081
close #2354
2021-12-09 14:27:29 +01:00