udp socket send and receive leak handles on windows
dis_socket = Socket.new( Socket::AF_INET, Socket::SOCK_DGRAM, 0 )
dis_socket.bind(Socket.pack_sockaddr_in( 3000, INADDR_ANY ))
text, sender = dis_socket.recvfrom(65536)
dis_socket = UDPSocket.open
dis_socket.send("0123456789", 0, "localhost", 3000)
Run one instance of each of the above. Bring up the task manager, add the Handles column, and watch both processes leak handles like a sieve. They appear to leak 1 handle per recvfrom/send call.
The handle count stops around 650k, with seemingly no ill effect. But in more complex programs, file i/o methods start throwing Errno::EBADF exceptions at about the same time the handle count peaks.
Under 1.8.6, the same programs do not leak any handles.
On the possibility it's OS specific, I'm observing the handle leaks on a machine running 64-bit Windows Vista.
It's likely this issue is related to issue #2473.