mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	send a message to the sessions to update mtu instead of trying to update it directly
This commit is contained in:
		
							parent
							
								
									d3a2087e0f
								
							
						
					
					
						commit
						248a08b2f1
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -136,7 +136,10 @@ func (ss *sessions) init(r *router) {
 | 
			
		|||
func (ss *sessions) reconfigure() {
 | 
			
		||||
	ss.router.Act(nil, func() {
 | 
			
		||||
		for _, session := range ss.sinfos {
 | 
			
		||||
			session.myMTU = ss.myMaximumMTU
 | 
			
		||||
			sinfo, mtu := session, ss.myMaximumMTU
 | 
			
		||||
			sinfo.Act(ss.router, func() {
 | 
			
		||||
				sinfo.myMTU = mtu
 | 
			
		||||
			})
 | 
			
		||||
			session.ping(ss.router)
 | 
			
		||||
		}
 | 
			
		||||
	})
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue