mirror of https://gogs.blitter.com/RLabs/xs
				
				
				
			Minor cleanup to keepalive timing jitter comments
This commit is contained in:
		
							parent
							
								
									f5480553df
								
							
						
					
					
						commit
						2087aab2d5
					
				|  | @ -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…
	
		Reference in New Issue