We have problem with the internal circular references within the Stdio.File objects. The problem is that not only are the objects as garbage until gc, but the associated file descriptors as well. This becomes a problem with massive amounts of connections.
Our short term solution is to sprinkle the code with destruct(file->fd), but I would like to ask what can be done within Pike, both short term (if anything) and as long term solution.