Project

General

Profile

Actions

Backport #3336

closed

Memory leak in IO.select() on Windows

Added by hdm (HD Moore) almost 14 years ago. Updated almost 5 years ago.

Status:
Closed
[ruby-core:30401]

Description

=begin
The IO.select() method leaks memory on the Windows platform (tested mingw32). This prevents any long-running service process from working properly on Windows and is a blocker for application development. Using LeakDiag, I tracked this down to an fdset not being freed properly, but I am not sure what the proper solution is yet,

To quickly reproduce this issue, run the following snippet:

require 'socket'
a = TCPServer.new(8888)
while true
IO.select([a], nil, nil, 0.01)
end

Watch the memory usage spike up in the task manager or process explorer.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0