mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Increase timeout for glorytun, decrease txqueuelen for interfaces
This commit is contained in:
		
							parent
							
								
									f5f68a0729
								
							
						
					
					
						commit
						9e10f07fa6
					
				
					 3 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -75,9 +75,9 @@ start_instance() {
 | 
			
		|||
	[ "${chacha20}" = "1" ] && procd_append_param command chacha20
 | 
			
		||||
 | 
			
		||||
	procd_append_param command \
 | 
			
		||||
		retry count -1 const 500000 \
 | 
			
		||||
		retry count -1 const 5000000 \
 | 
			
		||||
		timeout 40000 \
 | 
			
		||||
		keepalive count 5 idle 30 interval 2 \
 | 
			
		||||
		keepalive count 5 idle 10 interval 2 \
 | 
			
		||||
		buffer-size 32768
 | 
			
		||||
 | 
			
		||||
	procd_set_param respawn 0 30 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -97,6 +97,7 @@ interface_multipath_settings() {
 | 
			
		|||
	[ "$mode" = "master" ] && {
 | 
			
		||||
		ip route replace default via $gateway dev $iface
 | 
			
		||||
	}
 | 
			
		||||
	ifconfig $iface txqueuelen 90 > /dev/null 2>&1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
load_interfaces() {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,9 +6,9 @@ net.core.rmem_max = 134217728
 | 
			
		|||
# max write buffer
 | 
			
		||||
net.core.wmem_max = 134217728
 | 
			
		||||
# default read buffer
 | 
			
		||||
net.core.rmem_default = 65536
 | 
			
		||||
net.core.rmem_default = 32768
 | 
			
		||||
# default write buffer
 | 
			
		||||
net.core.wmem_default = 65536
 | 
			
		||||
net.core.wmem_default = 32768
 | 
			
		||||
# max processor input queue
 | 
			
		||||
net.core.netdev_max_backlog = 4096
 | 
			
		||||
# max backlog
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue