feat: enable tcp no delay option

This commit is contained in:
Alivecow 2024-12-05 17:48:31 +01:00
parent 6d1b735a0b
commit 0da047110f

View file

@ -29,6 +29,7 @@ pub fn padding_oracle(args: &Value) -> Result<Vec<u8>> {
for chunk in &cipher_chunks { for chunk in &cipher_chunks {
let mut stream = TcpStream::connect(format!("{}:{}", hostname, port))?; let mut stream = TcpStream::connect(format!("{}:{}", hostname, port))?;
stream.set_nodelay(true).expect("Error on no delay");
stream.set_nonblocking(false)?; stream.set_nonblocking(false)?;
// Track value sent to server // Track value sent to server