mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	have the writer clean things up. note that their still seem to be bugs in the main linkInterface actor's state machine--links sometimes just die, presumably because they're dropped from the switch and never replaced
This commit is contained in:
		
							parent
							
								
									bd3eaefb72
								
							
						
					
					
						commit
						ab59129557
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -367,6 +367,10 @@ func (w *linkWriter) sendFrom(from phony.Actor, bss [][]byte, isLinkTraffic bool
 | 
				
			||||||
		w.intf.notifySending(size, isLinkTraffic)
 | 
							w.intf.notifySending(size, isLinkTraffic)
 | 
				
			||||||
		w.intf.msgIO.writeMsgs(bss)
 | 
							w.intf.msgIO.writeMsgs(bss)
 | 
				
			||||||
		w.intf.notifySent(size, isLinkTraffic)
 | 
							w.intf.notifySent(size, isLinkTraffic)
 | 
				
			||||||
 | 
							// Cleanup
 | 
				
			||||||
 | 
							for _, bs := range bss {
 | 
				
			||||||
 | 
								util.PutBytes(bs)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue