HF RL Explorer

Task: Implement a Ruby Port Scanner with Timeout

Task: Implement a Ruby Port Scanner with Timeout: a task in Terminal-Lego-15k (Harbor dataset). Create a Ruby script that checks whether a given TCP port is open on a specified host, with a configurable timeout (defaulting to 1 second). The naive approach of using TCPSocket.new can block for 10-20…

Part of PrimeIntellect/Terminal-Lego-15k.