You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/portfwdserver: Close stream by returning from the handler method
The documentation says:
https://pkg.go.dev/google.golang.org/grpc#BidiStreamingServer
> To terminate the stream, return from the handler method and return an error from the status package, or use nil to indicate an OK status code.
- Changed to calling `proxy.HandleConn()`/`bicopy.Bicopy()` as goroutines, then wait `GRPCServerRW.closeCh` in `TunnelServer.Start()` for returning from handler before `HandleConn()`/`bicopy.Bicopy()` finishes.
- Added `CloseRead()` and `CloseWrite()` to `GRPCServerRW`. As a result, `GRPCServerRW` may be expected to pass the test added by #3708 with inetaf/tcpproxy's `tcpproxy.DialProxy()` or `bicopy.Bicopy()`.
Signed-off-by: Norio Nomura <[email protected]>
0 commit comments