remove unnecessary panic recovery in send goroutine

There is no concrete panic path in the send flow — Write() and
SetWriteDeadline() return errors, not panics. The defer/recover
was overly defensive and could mask real bugs.
This commit is contained in:
darkwolf
2026-03-12 10:56:53 +01:00
parent b6b3fe2678
commit ac07a37754
-7
View File
@@ -41,13 +41,6 @@ func startSending(maxClients int64, bannerMaxLength int64, records chan<- metric
return
}
go func() {
// Recover from unexpected panics to ensure client cleanup.
defer func() {
if r := recover(); r != nil {
glog.Errorf("Recovered panic in send goroutine: %v", r)
c.Close()
}
}()
bytesSent, err := c.Send(bannerMaxLength)
remoteIpAddr := c.RemoteIpAddr()
localPort := c.LocalPort()