Vinnie Falco
b2f3598313
Tidy up warnings
2020-04-20 08:09:11 -07:00
Vinnie Falco
483b00d20f
Fix msvc ICE in test
2020-03-29 13:22:34 -07:00
Richard Hodges
fe9951c980
Document websocket sub-protocols
2020-03-28 00:06:06 +01:00
Richard Hodges
d12dcef52c
Fix Content-Length parsing
...
Fix #1880
2020-03-19 16:21:29 +01:00
Richard Hodges
c682eb46e7
Fix warning in test
2020-02-29 10:43:52 -08:00
Cristian Morales Vega
75da7a522e
Fix ostream flush:
...
fix #1853 , close #1859 , close #1866
After calling the DynamicBuffer commit() function the
buffer returned from prepare() can be invalidated but
the ostream kept using it.
2020-02-29 10:43:20 -08:00
Richard Hodges
ea078cfcdb
Refactor flat_static_buffer
2020-02-29 10:43:00 -08:00
Richard Hodges
69ef525d5c
Refactor buffers_adaptor
2020-02-29 10:43:00 -08:00
Richard Hodges
eebf5773ed
Rename to DynamicBuffer_v0:
...
The Beast variation of Asio's DynamicBuffer_v1
is now named DynamicBuffer_v0.
2020-02-29 10:42:32 -08:00
Vinnie Falco
c340697171
Refactor multi_buffer
2020-02-29 10:42:30 -08:00
Richard Hodges
7701bf8738
moved-from container with unequal allocator will not be modified:
...
Affects:
- flat_buffer
- multi_buffer
- http::fields
fixes #1832
closes #1834
2020-02-04 18:36:53 +01:00
Richard Hodges
6d10adf936
fix erase field
...
fixes #1828
closes #1829
2020-02-04 18:36:50 +01:00
Richard Hodges
3d168c0336
file body reports short_read on eof
...
fixes #1818
fixes #1815
close #1821
2020-01-28 10:24:44 +01:00
Mika Fischer
dfb44236e9
file_stdio supports unicode paths:
...
fix #793 , close #1791 , close #1793
2019-12-29 08:58:13 -08:00
Mika Fischer
f0c92f472c
file_win32 supports UTF-8 paths:
...
fix #793 , close #1791 , close #1793
This brings file_win32 in sync with the documentation.
Previously, the path passed to open worked if encoded in the system
codepage (which is almost never UTF-8).
Now, the path must be encoded as UTF-8, as stated in the
documentation.
Adapt file tests so that for file_win32 all paths include a unicorn
character.
2019-12-29 08:56:02 -08:00
Vinnie Falco
54ea61fd42
Use docca master branch
2019-12-17 11:11:53 -08:00
Vinnie Falco
9bb4adf21b
Use regular throw in test
2019-12-08 08:31:39 -08:00
Vinnie Falco
5597391e41
Fix pragma warning
2019-12-07 13:19:59 -08:00
Vinnie Falco
2f7ddb69ee
Use plain throw in unit test framework
2019-12-06 19:48:27 -08:00
AeroStun
d895906bcc
Refactor zlib tests and fix typo:
...
close #1744
* Fixed typo in enum name
* Added missing zlib error enumerator
* Marked caveat in zlib impl to avoid future confusion
* Created Compressor/Decompressor abstractions in Beast.zlib tests
* Applied abstractions on Beast.zlib tests
* Workaround Travis-CI' 10min silence timeout
* Add test for Beast.zlib's need_dict error
* Avoid breaking user-code dependant on deprecated enumerator interface
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-11-02 08:29:30 -07:00
Cristian Morales Vega
26a156e300
Fix async_close error code when async_read times out
...
close #1754
2019-11-02 08:26:23 -07:00
Roel Standaert
dcc30bcc40
https_get example sends the Host header:
...
close #1751
If you try the https_get example with the Server header, servers will
respond with 400 Bad Request. This example works as it should when it
uses the Host header.
2019-11-02 08:26:06 -07:00
Vinnie Falco
21137f2708
Disable broken tests
2019-10-31 06:49:55 -07:00
Vinnie Falco
9f468ec1c1
Use automatically deduced return types for all async operations:
...
C++14 or later is required to support completion tokens that use
per-operation return type deduction. For C++11, a completion
token's async_result specialisation must still provide the nested
typedef `return_type`.
2019-10-31 06:47:22 -07:00
Vinnie Falco
7cc8759261
Async init-fns use the executor's default token
2019-10-31 05:47:05 -07:00
Peter Jankuliak
1abe92f524
Fix leftovers in basic_parser corner case:
...
fix #1734 , close #1736
buf_.get() has size `buf_len_`, but only `size` number of octets in that
buffer is valid.
2019-10-18 05:30:29 -07:00
Vinnie Falco
087bcc4ef5
Use the executor type in basic_stream timer
...
fix #1589
2019-10-15 15:48:42 -07:00
Vinnie Falco
bafce23853
Squelch spurious websocket timer assert
2019-10-09 12:00:22 -07:00
AeroStun
37f75773ef
Added missing error handling in deflate stream test
...
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-10-07 12:46:39 -07:00
AeroStun
dbdf49e313
Added missing header inclusions in deflate stream test
...
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-10-07 12:46:39 -07:00
AeroStun
5984212e77
Silence integer narrowing in inflate stream tests
...
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
2ce0a10a01
Add a known string to the inflate matrix
...
This makes coverage slightly more stable coverage and covers some
additional lines.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
c76ef3bf31
Test flush after emitting a dist code
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
fd57b0a73d
Test for match length exceeding lookahead in deflate stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
3d9ee6acee
Add test for flush when literal buffer is full
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
85ab7a3fd0
Add test for partial flush in deflate stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
01c200d2ef
Add test checking for writes into a stream in finished state
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
d785666738
Fix nontrivial memeset initialization warning in zlib bench tests
...
GCC complains about initialization of a non-trivial object with memset,
`z_params` is non-trivial because of non-static data member initializer.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
d1ff4405aa
Add test for flush::trees with uncompressed strategy
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
0b8c285bb7
Add test for flush::trees with fixed Huffman strategy
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
3b585f660c
Add excess data inflate test
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
610a2681e4
Throw on invalid argument
...
This condition is a programmer error, so reporting it as a regular
error is confusing.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
11ee655f97
Expand deflate matrix to check for different memLevel values
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:39 -07:00
Damian Jarek
8ee65054a6
Add success test cases from zlib test suite
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
b0aa3df714
Import more failure test cases from zlib test suite
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
5937c06cd0
Add test for invalid inflate stream settings
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
4be185eb2b
Add test for invalid deflate stream settings
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Damian Jarek
84bf4c5362
Add failure test cases from zlib's inflate test suite
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-10-07 12:46:38 -07:00
Vinnie Falco
0f932d589b
Silence unused variables
2019-10-04 18:57:48 -07:00
Vinnie Falco
5f9c14af2e
Fix typo
2019-10-04 18:48:09 -07:00