I've encountered a situation where pushy is leaking an open file descriptor (shows up as pipe under lsof) when the connection is closed. I think I've tracked it down to connection.server.stderr. I'm seeing this on Linux, so I'm not sure it applies everywhere. This is the simplest example I could come up with to illustrate (relies on psutil).
Thanks for reporting the issue and the repro. I'm away for work at the moment, so won't get to this for a bit. If you end up with a fix before me, please do send through a pull request.
I've encountered a situation where
pushy
is leaking an open file descriptor (shows up aspipe
underlsof
) when the connection is closed. I think I've tracked it down toconnection.server.stderr
. I'm seeing this on Linux, so I'm not sure it applies everywhere. This is the simplest example I could come up with to illustrate (relies onpsutil
).output: