mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
proxy: optimize timeout handling in udp copy
This commit is contained in:
1 parent
4b313a3fe1
commit
2ad3498abd
15 files changed
+46
-41
No files matched your search
@@ -151,7 +151,7 @@ func (s *Socks5) serveSession(session *Session) {
|
||||
defer dstPC.Close()
|
||||
|
||||
go func() {
|
||||
proxy.RelayUDP(session.srcPC, session.src, dstPC, 2*time.Minute)
|
||||
proxy.CopyUDP(session.srcPC, session.src, dstPC, 2*time.Minute, 5*time.Second)
|
||||
nm.Delete(session.key)
|
||||
close(session.finCh)
|
||||
}()
|
||||
|
||||
Reference in new issue
Block a user