manager/conncache: Fix deadlocked conncache.

(1) Ensure that RemoteDischarges calls unblock when the connection is closed.
(2) Release the ConnCache lock when calling AuthorizePeer since it can now
    hang if a remote end never sends Discharges.
    - note that the implementation results in a few unnecessary locks, but
      the alternative increased code complexity tremendously.

Change-Id: Ie372a6cae61eca4c776190dd4a637478a1dc9ce5
2 files changed
tree: 2c2148fb23b3a4b2735c540a29ef0c18687960e2
  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.