ref: Set root cancel on context of encapsulated flows in Conn.

Proxied RPCs were failing in the following scenario:
A starts proxied RPC 1 to B with ctx, cancel.
A starts proxied RPC 2 to B.
RPC 1 completes and A calls cancel.
RPC 2 fails.

This was happening because cancel was closing the encapsulated proxy
flow. The solution is to use SetDeadlineContext to set the ctx on
the flow the RootCancel context used in the setup of the encapsulating
Conn.

Change-Id: I56455d52ee6dcd579fa1e92c00ce63ddb49e18f9
2 files changed
tree: f155e44c7b3317193545c23965c117155c7ce44d
  1. cmd/
  2. examples/
  3. internal/
  4. lib/
  5. runtime/
  6. services/
  7. test/
  8. .gitignore
  9. AUTHORS
  10. CONTRIBUTING.md
  11. CONTRIBUTORS
  12. envvar.go
  13. envvar_test.go
  14. LICENSE
  15. PATENTS
  16. README.md
  17. VERSION
README.md

Vanadium

This repository contains a reference implementation of the Vanadium APIs.

Unlike the APIs in https://github.com/vanadium/go.v23, which promises to provide backward compatibility this repository makes no such promises.