Browse Source

5*60 -> 2*60

pull/2227/head
RPRX 1 year ago committed by GitHub
parent
commit
62e881b01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/proxyman/inbound/worker.go

2
app/proxyman/inbound/worker.go

@ -362,7 +362,7 @@ func (w *udpWorker) clean() error {
}
for addr, conn := range w.activeConn {
if nowSec-atomic.LoadInt64(&conn.lastActivityTime) > 5*60 { // TODO Timeout too small
if nowSec-atomic.LoadInt64(&conn.lastActivityTime) > 2*60 {
if !conn.inactive {
conn.setInactive()
delete(w.activeConn, addr)

Loading…
Cancel
Save