This project is closed and read-only.
Actions
Backport #3336
closedMemory leak in IO.select() on Windows
Backport #3336:
Memory leak in IO.select() on Windows
Status:
Closed
Assignee:
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