diff --git a/common/listener/listener.go b/common/listener/listener.go index cc27a62e..b0f78eb8 100644 --- a/common/listener/listener.go +++ b/common/listener/listener.go @@ -91,7 +91,7 @@ func (l *Listener) Start() error { return err } l.packetOutboundClosed = make(chan struct{}) - l.packetOutbound = make(chan *N.PacketBuffer, 64) + l.packetOutbound = make(chan *N.PacketBuffer, 1024) go l.loopUDPIn() if !l.disablePacketOutput { go l.loopUDPOut() diff --git a/common/listener/listener_udp.go b/common/listener/listener_udp.go index e689c8bb..672fd9b6 100644 --- a/common/listener/listener_udp.go +++ b/common/listener/listener_udp.go @@ -198,7 +198,7 @@ func (w *packetWriter) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) if w.shutdown.Load() { return os.ErrClosed } - w.logger.Trace("dropped packet to ", destination) + w.logger.Debug("dropped packet to ", destination) return nil } } diff --git a/constant/timeout.go b/constant/timeout.go index e1bc7ccd..d368869a 100644 --- a/constant/timeout.go +++ b/constant/timeout.go @@ -30,6 +30,6 @@ var ProtocolTimeouts = map[string]time.Duration{ ProtocolDNS: 10 * time.Second, ProtocolNTP: 10 * time.Second, ProtocolSTUN: 10 * time.Second, - ProtocolQUIC: 30 * time.Second, - ProtocolDTLS: 30 * time.Second, + ProtocolQUIC: 60 * time.Second, + ProtocolDTLS: 60 * time.Second, }