79592161

Date: 2025-04-25 09:00:45
Score: 0.5
Natty:
Report link

I'm still testing it, but this seems to work so far:

for stream in listener.incoming(){
   ...
}
drop(listener);

does pretty much everything I need. Just putting it after the stream listener.

Per https://doc.rust-lang.org/std/net/struct.TcpListener.html
"The socket will be closed when the value is dropped."

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: lilHar