- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for registerStream (0.41 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection.go
return nil, err } if err = stream.WaitTimeout(createStreamResponseTimeout); err != nil { return nil, err } c.registerStream(stream) return stream, nil } // registerStream adds the stream s to the connection's list of streams that // it owns. func (c *connection) registerStream(s httpstream.Stream) { c.streamLock.Lock() c.streams[s.Identifier()] = s c.streamLock.Unlock() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 01 15:04:07 UTC 2021 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/connection_test.go
c := &connection{streams: make(map[uint32]httpstream.Stream)} stream0 := &fakeStream{id: 0} stream1 := &fakeStream{id: 1} stream2 := &fakeStream{id: 2} c.registerStream(stream0) c.registerStream(stream1) if len(c.streams) != 2 { t.Fatalf("should have two streams, has %d", len(c.streams)) } // not exists c.RemoveStreams(stream2) if len(c.streams) != 2 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 01 11:58:57 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/istio-agent/xds_proxy_delta.go
deltaResponsesChan: make(chan *discovery.DeltaDiscoveryResponse, 1), stopChan: make(chan struct{}), downstreamDeltas: downstream, } p.registerStream(con) defer p.unregisterStream(con) ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() upstreamConn, err := p.buildUpstreamConn(ctx) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 04 20:29:08 UTC 2024 - 11.7K bytes - Viewed (0) -
pkg/istio-agent/xds_proxy.go
p.connectedMutex.Lock() defer p.connectedMutex.Unlock() if p.connected != nil && p.connected == c { close(p.connected.stopChan) p.connected = nil } } func (p *XdsProxy) registerStream(c *ProxyConnection) { p.connectedMutex.Lock() defer p.connectedMutex.Unlock() if p.connected != nil { proxyLog.Warnf("registered overlapping stream; closing previous") close(p.connected.stopChan) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 27.9K bytes - Viewed (0)