-
-
Notifications
You must be signed in to change notification settings - Fork 942
Closed
Labels
Milestone
Description
The following code leaks like a sieve...up to 1.5GB of total memory in under a minute for me:
s = UNIXServer.new("foofoo")
Thread.new {
loop {
c1 = s.accept
IO.select([c1])
c1.read(5)
c1.write("bubye")
c1.close
}
}
loop {
c = UNIXSocket.new("foofoo")
c.write("hello")
IO.select([c])
c.read(5)
c.close
print "."
}It did not leak without the IO.select calls, so I suspect that something in jnr-enxio's implementation of selection there's native memory leaking.
Reactions are currently unavailable