You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Yeah; as best I can tell Serve ends up here, which unconditionally uses a background context. The context passed into ListenAndServe is only used for cancellation.
While looking at adding a capnproto-rpc interface to a project, I came to the conclusion that there's no equivalent to
http.Server
'sBaseContext
/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.The text was updated successfully, but these errors were encountered: