-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to tungstenite 0.20, deal with max_send_buffer_len
Tungstenite 0.20 starts buffering messages and thus has a max buffer size. When sending more data in, it returns an error. This is a problem for us as this would be fatal. We don't want to send any more data in than the buffer allows. TODO in follow up commit: - tests - documentation
- Loading branch information
Showing
20 changed files
with
270 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ package: | |
# - `git tag x.x.x` with version number. | ||
# - `git push && git push --tags` | ||
# | ||
version : 0.10.0 | ||
version : 0.11.0 | ||
name : ws_stream_tungstenite | ||
edition : '2021' | ||
authors : [ Naja Melan <[email protected]> ] | ||
|
@@ -69,11 +69,11 @@ dependencies: | |
futures-sink : { version: ^0.3 , default-features: false } | ||
futures-io : { version: ^0.3 , default-features: false } | ||
futures-util : { version: ^0.3 , default-features: false } | ||
log : { version: ^0.4 , default-features: false } | ||
tungstenite : { version: ^0.20, default-features: false } | ||
pharos : { version: ^0.5 , default-features: false } | ||
async-tungstenite : { version: ^0.23, default-features: false } | ||
tokio : { version: ^1 , default-features: false, optional: true } | ||
tracing : { version: ^0.1 } | ||
|
||
# private deps | ||
# | ||
|
@@ -87,7 +87,6 @@ dev-dependencies: | |
async-tungstenite : { version: ^0.23, features: [ tokio-runtime, async-std-runtime ] } | ||
assert_matches : ^1 | ||
async_progress : ^0.2 | ||
flexi_logger : ^0.25 | ||
futures : ^0.3 | ||
futures-test : ^0.3 | ||
futures-timer : ^3 | ||
|
@@ -96,6 +95,9 @@ dev-dependencies: | |
# pretty_assertions : ^0.6 | ||
tokio : { version: ^1, default-features: false, features: [ net, rt, rt-multi-thread, macros ] } | ||
tokio-util : { version: ^0.7, default-features: false, features: [ codec ] } | ||
tracing-subscriber : { version: ^0.3, default-features: false, features: [ ansi, env-filter, fmt, json, tracing-log ] } | ||
tracing-log : ^0.1 | ||
|
||
# tokio-stream : { version: ^0.1, default-features: false, features: [] } | ||
url : ^2 | ||
pin-utils : ^0.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.