Skip to content

Commit 62e881b

Browse files
authored
5*60 -> 2*60
1 parent 9122d0f commit 62e881b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/proxyman/inbound/worker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func (w *udpWorker) clean() error {
362362
}
363363

364364
for addr, conn := range w.activeConn {
365-
if nowSec-atomic.LoadInt64(&conn.lastActivityTime) > 5*60 { // TODO Timeout too small
365+
if nowSec-atomic.LoadInt64(&conn.lastActivityTime) > 2*60 {
366366
if !conn.inactive {
367367
conn.setInactive()
368368
delete(w.activeConn, addr)

0 commit comments

Comments
 (0)