madsim-rs / madsim

Magical Deterministic Simulator for distributed systems in Rust.
Apache License 2.0
648 stars 46 forks source link

tonic: simulate connection broken #38

Closed wangrunji0408 closed 2 years ago

wangrunji0408 commented 2 years ago

The real-world gRPC sets up a TCP connection between client and server. So when a node is down, the other side will return an error of connection broken down. However, in our simulation, the underlying network is a connectionless model, so nothing will happen when the peer is down.