Skip to content

Commit

Permalink
core - drop deadline timeouts for now
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianZaremba committed Dec 10, 2024
1 parent 50fda74 commit 8d32781
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/cbng/processor/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d32781

Please sign in to comment.