Re: [capnproto] Clean Disconnect Procedure

2023-09-27 Thread 'Alex' via Cap'n Proto
Thank you for the info, Kenton. I've been looking deeply at the design of the RpcSystem, and I have a couple thoughts/questions: 1. I would like to add a new RPC Message in rpc.capnp: goodbye @14 :Void; This message indicates to the recipient that the sender has nothing more to say, and that it

Re: [capnproto] Clean Disconnect Procedure

2023-09-27 Thread 'Kenton Varda' via Cap'n Proto
(Happy to accept a PR. The relevant code is in `messageLoop()` and `RpcConnectionState::disconnect()` in `rpc.c++`.) On Wed, Sep 27, 2023 at 2:05 PM Kenton Varda wrote: > Indeed, there isn't really a clean shutdown mechanism right now. I guess > it hasn't come up as a priority because in most

Re: [capnproto] Clean Disconnect Procedure

2023-09-27 Thread 'Kenton Varda' via Cap'n Proto
Indeed, there isn't really a clean shutdown mechanism right now. I guess it hasn't come up as a priority because in most use cases we just haven't really cared if there's a TCP RST triggered under the hood... since we're already killing the connection, we ignore that error anyway. I suppose what