flow/manager: Fix caching of connections.
Connections should not be keyed by blessingNames, instead the
blessingNames are compared upon retrieval from the cache (only
if the conn is not to a proxy).
This ensures that connections to proxies from servers aren't replaced
from the cache when a server makes a connection through the proxy
(acting as a client). The blessings of the end server were incorrectly
being used in the caching of connection to the proxy.
Change-Id: I4a30f3610820be6dd704095653612481bebff627
diff --git a/runtime/factories/roaming/roaming.go b/runtime/factories/roaming/roaming.go
index 7a2703d..c6c0fe3 100644
--- a/runtime/factories/roaming/roaming.go
+++ b/runtime/factories/roaming/roaming.go
@@ -27,14 +27,14 @@
"v.io/x/ref/lib/pubsub"
"v.io/x/ref/lib/security/securityflag"
"v.io/x/ref/runtime/internal"
- _ "v.io/x/ref/runtime/internal/flow/protocols/tcp"
- _ "v.io/x/ref/runtime/internal/flow/protocols/ws"
- _ "v.io/x/ref/runtime/internal/flow/protocols/wsh"
"v.io/x/ref/runtime/internal/lib/appcycle"
"v.io/x/ref/runtime/internal/lib/roaming"
"v.io/x/ref/runtime/internal/lib/websocket"
"v.io/x/ref/runtime/internal/lib/xwebsocket"
"v.io/x/ref/runtime/internal/rt"
+ _ "v.io/x/ref/runtime/protocols/tcp"
+ _ "v.io/x/ref/runtime/protocols/ws"
+ _ "v.io/x/ref/runtime/protocols/wsh"
"v.io/x/ref/services/debug/debuglib"
// TODO(suharshs): Remove these once we switch to the flow protocols.