flow/manager: Fixes to cache and sending proxy connections.

(1) First this change ensures that we don't dial an additional proxy
    connection to remote endpoints that have a null routing id (i.e.
    host:port only endpoints)
(2) Additionally, there was a bug in how we cached connections. We
    looked up connections based on resolved network and address, but
    cached connections based on the provided endpoint's network and
    address. This causes two connections to be made for the same
    remote host:port endpoint. This normally wasn't noticed, but breaks
    since the type flow needs the guarantee that its on the same
    connection as its real flow. We fix this by caching on the resolved
    network and address.

Change-Id: Ibc90eac54823ee103e24fb6139ead0f5862f4ee3
3 files changed
tree: d12cbb1ed7e12cff6ec50eec805a60c12981851c
  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.