go-capnp icon indicating copy to clipboard operation
go-capnp copied to clipboard

server implementations should be able to specify a root context other than `context.Background()`

Open hdonnay opened this issue 1 year ago • 2 comments
trafficstars

While looking at adding a capnproto-rpc interface to a project, I came to the conclusion that there's no equivalent to http.Server's BaseContext/ConnContext. This makes context propagation a chore, as a parent context would need to be passed in whatever concrete type is being used and then every method would need to use some tricky code to tie the signalling between the parent and request contexts together.

hdonnay avatar Jul 12 '24 22:07 hdonnay