n0-computer / quic-rpc

A streaming rpc system based on quic
Other
89 stars 12 forks source link

Add some sort of connection scoped values on the server side #72

Closed rklaehn closed 3 months ago

rklaehn commented 5 months ago

You should be able to associate a value with a connection so that it gets dropped if the connection gets dropped. Or in general the ability to do some sort of cleanup on connection loss.

rklaehn commented 3 months ago

In retrospect I think this is not a good idea. The connection identity should not matter that much. How I think this should be solved is to create a scope that is a long-running bidi rpc interaction, and then attach things to this scope when needed. I am going to implement this in iroh.