From: Sergey Matveev Date: Tue, 16 Apr 2024 19:39:07 +0000 (+0300) Subject: Ignore UDP network write errors X-Git-Tag: v2.3.0^0 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e39af2609d453d7fbedcacda628b02d0ad20e47f5ab8b929aff335109d81d2a5;p=vors.git Ignore UDP network write errors Because of firewall they are possible. --- diff --git a/cmd/client/main.go b/cmd/client/main.go index c54d41d..0895cd0 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -559,7 +559,6 @@ func main() { OurStats.bytes += vors.IPHdrLen(srvAddrUDP.IP) + 8 + 1 if _, err = conn.Write([]byte{sid}); err != nil { log.Println("send:", err) - Finish <- struct{}{} } } }() @@ -622,7 +621,6 @@ func main() { OurStats.AddRMS(pcm) if _, err = conn.Write(pkt); err != nil { log.Println("send:", err) - break } } }()