Project

General

Profile

Bug #18473 ยป test.rb

script to reproduce the output - driv3r (Leszek Zalewski), 01/11/2022 02:02 PM

 
require "socket"

tcp_server = TCPServer.new("127.0.0.1", 9000)
tcp_server.setsockopt(Socket::SOL_SOCKET, Socket::SO_REUSEADDR, true)
tcp_server.listen 1024

puts tcp_server.getsockopt(Socket::SOL_TCP, Socket::TCP_INFO).inspect

tcp_server.close
    (1-1/1)