pahaz / sshtunnel

SSH tunnels to remote server.
MIT License
1.23k stars 184 forks source link

SSHTunnelForwarder leaves defunct SSH zombie processes #294

Open LiteWait opened 3 weeks ago

LiteWait commented 3 weeks ago

Simple application that opens a forwarder to a remote system, makes a PostgreSQL query and then stops the forwarder.

If I add a sleep after the forwarder.stop() I see a defunct SSH process which goes away when the Python app exits.

Problem: If this scenario is used with a long running Python process, it keeps leaving more and more defunct processes.

sshtunnel==0.4.0 (latest)

Please advise.