Skip to content

Panic when connection unexpectedly closed

A broken connection could trigger this panic:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os
{ code: 104, kind: ConnectionReset, message: "Connection reset by peer" }',
src/main.rs:26:33

Steps to repro: run nmap

Edited by Antnks