-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ping-pong
for WebSocket clients
#772
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
1162d3e
ws: Implement ping for `TransportSenderT` trait
lexnv 2a76701
ws/client: Receive pong frames
lexnv 80af45a
core/client: Use `select!` macro for the background task
lexnv 63ba7e7
client: Propagate ping interval to background task
lexnv 0d3534c
async_client: Submit ping requests
lexnv 23ad9b9
async_client: Handle pong replies
lexnv 48b5db9
client: Handle frontend messages to dedicated fn
lexnv c86b08e
client: Handle backend messages in dedicated fn
lexnv ae5bf75
client: Add terminated fuse for opt-out pings
lexnv 0ee78c5
Set opt-out behavior for client pings
lexnv 8e82ad1
Merge remote-tracking branch 'origin/master' into 738_ping_pong
lexnv e7c6edb
client: Move imports
lexnv 9c5f235
client: Handle handle_frontend_messages errors
lexnv 8e3ff40
client: Add custom error related to byteslice conversions
lexnv 7d39b6f
client: Modify `send_ping` to send empty slices
lexnv 64a7b99
Fix `cargo hack check` and use `select_biased`
lexnv 1559554
Handle sending pings with lowest priority
lexnv 5ba4d0e
core: Add proper number of params to `background_task`
lexnv aed7d26
Fix wasm client
lexnv 48d6eec
Handle raw bytes and string received messages
lexnv cda4c09
Fix Cargo.toml feature
lexnv 13ee47a
Panic when empty slice does not fit into `ByteSlice125`
lexnv 6b40519
wasm: Add operation not supported for pings
lexnv 537627f
Rename `ReceivedMessage` from Data to Text
lexnv 2a2787f
Rename test variable
lexnv a9bed1e
Add documentation
lexnv 4861c14
Merge remote-tracking branch 'origin/master' into 738_ping_pong
lexnv fb7ea4d
client: Use `future::select` for cancel safety
lexnv 736da11
client: Remove `pong` handling logic
lexnv b262442
client: Update ping documentation
lexnv 2d6b04c
Update core/src/client/async_client/mod.rs
lexnv 24b5d67
Update core/src/client/async_client/mod.rs
lexnv 839ec65
Update core/src/client/async_client/mod.rs
lexnv 8a1462a
Update core/src/client/async_client/mod.rs
lexnv ba14af9
Update core/src/client/async_client/mod.rs
lexnv b79c64f
Update core/Cargo.toml
lexnv e615af5
Update core/Cargo.toml
lexnv baab48f
logs: Keep debug log for submitting `Ping` frames
lexnv 1738722
Print debug logs when receiving `Pong` frames
lexnv c661065
Update core/src/client/async_client/mod.rs
niklasad1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we've been talking about cancel safety a bit, and not really relaetd to this PR, but do you reckon it is worth adding an issue to add docs to functions to note when they aren't cancel safe @niklasad1?
(or maybe almost no methods are cancel safe, and we state that up front and then note which ones are, perhaps)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds like a good idea.