casper-network / casper-network/casper-node

Implement request cancellation short-circuiting in juliet

Open
#4,293 0 comments 0 reactions 1 assignee Claimed by @marc-casperlabs View on GitHub
low-priority
Dominant language
Rust
Stars
399
Forks
224
Avg merge
15h 44m
Merged PRs (30d)
2

Description

Right now, the juliet crate's topmost layer (RPC) does not efficiently process request cancellations, it will simply let the response run its course and use it, instead of sending a response cancellation immediately instead, and internally discarding the response, should there be any. Instead, we would like to

- confirm request cancellations as early as possible by sending a response cancellation,
- silently discard responses if they are sent after receiving a cancellation,
- allow clients to check if a request has been cancelled if they have not yet started processing it, and
- ensure there is no attack vector by alternating request/cancel.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.