性能优化

This commit is contained in:
flswld committed 2023-04-13 19:46:20 +08:00
1 parent 0440a6b1ed
commit e7c5723f98
10 files changed
+215 -182

No files matched your search

-2
View File
@@ -343,8 +343,6 @@ func (s *UDPSession) Close() error {
})
if once {
atomic.AddUint64(&DefaultSnmp.CurrEstab, ^uint64(0))
// try best to send all queued messages
s.mu.Lock()
s.kcp.flush(false)