From 8d327813b4443f3701ec7e44acc8c782dea18423 Mon Sep 17 00:00:00 2001 From: Damian Zaremba Date: Tue, 10 Dec 2024 19:45:27 +0000 Subject: [PATCH] core - drop deadline timeouts for now --- pkg/cbng/processor/core.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pkg/cbng/processor/core.go b/pkg/cbng/processor/core.go index 9a4956e..68a5a25 100644 --- a/pkg/cbng/processor/core.go +++ b/pkg/cbng/processor/core.go @@ -109,22 +109,11 @@ func isVandalism(l *logrus.Entry, parentCtx context.Context, configuration *conf } defer conn.Close() - if err := conn.SetDeadline(time.Now().Add(time.Second * 20)); err != nil { - scoreSpan.SetStatus(codes.Error, err.Error()) - logger.Errorf("Could not set deadline: %v", err) - return false, err - } if _, err := conn.Write(xmlData); err != nil { scoreSpan.SetStatus(codes.Error, err.Error()) logger.Infof("Could not write payload: %v", err) return false, err } - - if err := conn.SetReadDeadline(time.Now().Add(time.Second * 20)); err != nil { - scoreSpan.SetStatus(codes.Error, err.Error()) - logger.Errorf("Could not set read deadline: %v", err) - return false, err - } response := []byte{} tmp := make([]byte, 4096) i := 0