You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'permessage-deflate' into feat/taosdata/permessage-deflate
* permessage-deflate: (78 commits)
Fix clippy warnings and errors when disabling handshake feature
Apply most suggestions by @erebe about permessage deflate
Improve performance of processing continue frames
add more details for utf8 errors for debugging
Implement `From<Bytes>` for `Message`
Don't copy data before decompression
Apply suggestions from code review
fix(Utf8Bytes): hash consistency for Borrow + Hash traits
Bump version
Implement `PartialOrd` and `Ord` for `Utf8Bytes`
Derive `Hash` for `Utf8Bytes`
Implement `Borrow<str>`, `AsRef<[u8]>`, `AsRef<str>` and `AsRef<Bytes>` for `Utf8Bytes
Fix formatting of srv_accept_unmasked_frames example
Decompress single-frame messages as well
Add WebSocketConfig::read_buffer_size docs explaining performance/memory tradeoff (snapview#482)
Update rand requirement from 0.8.0 to 0.9.0 (snapview#481)
Remove byteorder, use bytes::Buf::get_uint instead (snapview#477)
feat: add unsafe Utf8Bytes::from_bytes_unchecked (snapview#476)
Keep the set-len refactor but use safe resize
Revert "Revert "Use set-len when reading into buffer""
...
- Implement traits and add helper methods for the UTF8 payloads making them comparable and more ergonomic.
4
+
5
+
# 0.26.1
6
+
- Fix/revert unsoundness that could lead to UB with dodgy `Read` stream implementations.
7
+
8
+
# 0.26.0
9
+
- Simplify `Message` to use `Bytes` payload directly with simpler `Utf8Bytes` for text.
10
+
- Change `CloseFrame` to use `Utf8Bytes` for `reason`.
11
+
- Re-export `Bytes`.
12
+
13
+
# 0.25.0
14
+
15
+
- New `Payload` type for `Message` that allows sending messages with a payload that can be cheaply cloned (`Bytes`).
16
+
Long standing [issue](https://github.com/snapview/tungstenite-rs/issues/96) solved!
17
+
- Add `WebSocketConfig::read_buffer_size` default 128 KiB. This improves high load read performance.
18
+
**Note: This default increases memory usage compared to previous versions particularly for users expecting a high number of connections. Configure 4-8 KiB to get a similar memory usage to 0.24**.
19
+
- Make `WebSocketConfig` non-exhaustive & add builder style construction fns.
0 commit comments