mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +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)
|
buf := make([]byte, bufferSize)
|
||||||
for {
|
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)
|
n, err := pipeConn.Read(buf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if ctx.Err() != nil {
|
if ctx.Err() != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user