MCPcopy
hub / github.com/cloudflare/cloudflared / Stream

Method Stream

ingress/origin_connection.go:40–42  ·  view source on GitHub ↗
(_ context.Context, tunnelConn io.ReadWriter, _ *zerolog.Logger)

Source from the content-addressed store, hash-verified

38}
39
40func (tc *tcpConnection) Stream(_ context.Context, tunnelConn io.ReadWriter, _ *zerolog.Logger) {
41 stream.Pipe(tunnelConn, tc, tc.logger)
42}
43
44func (tc *tcpConnection) Write(b []byte) (int, error) {
45 if tc.writeTimeout > 0 {

Callers 1

TestStreamTCPConnectionFunction · 0.95

Calls 1

PipeFunction · 0.92

Tested by 1

TestStreamTCPConnectionFunction · 0.76