mirror of
				https://gogs.blitter.com/RLabs/xs
				synced 2024-08-14 10:26:42 +00:00 
			
		
		
		
	Minor cleanup to keepalive timing jitter comments
This commit is contained in:
		
							parent
							
								
									f22b756a22
								
							
						
					
					
						commit
						023aa41878
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -898,7 +898,7 @@ func main() { | ||||||
| 				time.Sleep(time.Duration(2000-rand.Intn(200)) * time.Millisecond) | 				time.Sleep(time.Duration(2000-rand.Intn(200)) * time.Millisecond) | ||||||
| 				// FIXME: keepAlives should probably have small random packet len/data as well | 				// FIXME: keepAlives should probably have small random packet len/data as well | ||||||
| 				// to further obscure them vs. interactive or tunnel data | 				// to further obscure them vs. interactive or tunnel data | ||||||
| 				// ** Min pkt len is 2 due to hkex.Conn.WritePacket() padding logic? I forget. | 				// keepAlives must be  >=2 bytes, due to processing elsewhere | ||||||
| 				conn.WritePacket([]byte{0, 0}, hkexnet.CSOTunKeepAlive) // nolint: errcheck,gosec | 				conn.WritePacket([]byte{0, 0}, hkexnet.CSOTunKeepAlive) // nolint: errcheck,gosec | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue