mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
[management,signal] Remove ws-proxy read deadline (#4598)
This commit is contained in:
@@ -158,10 +158,6 @@ func (p *Proxy) pipeToWS(ctx context.Context, cancel context.CancelFunc, wg *syn
|
||||
|
||||
buf := make([]byte, bufferSize)
|
||||
for {
|
||||
if err := pipeConn.SetReadDeadline(time.Now().Add(ioTimeout)); err != nil {
|
||||
log.Debugf("Failed to set pipe read deadline: %v", err)
|
||||
}
|
||||
|
||||
n, err := pipeConn.Read(buf)
|
||||
if err != nil {
|
||||
if ctx.Err() != nil {
|
||||
|
||||
Reference in New Issue
Block a user