fix(udp): mark connection active on WriteQueue to prevent idle timeout race

This commit is contained in:
sagitchu
2026-04-21 09:55:18 +08:00
parent f6d2ab3270
commit bb48ab00bd
+1
View File
@@ -227,6 +227,7 @@ func (c *conn) SetIdle(idle bool) {
func (c *conn) WriteQueue(b []byte) error {
select {
case c.rc <- b:
c.SetIdle(false)
return nil
case <-c.closed: