mirror of https://github.com/XTLS/Xray-core
				
				
				
			5*60 -> 2*60
							parent
							
								
									9122d0f056
								
							
						
					
					
						commit
						62e881b01a
					
				| 
						 | 
				
			
			@ -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…
	
		Reference in New Issue