basti-app / basti

✨ Securely connect to RDS, Elasticache, and other AWS resources in VPCs with no idle cost
https://www.basti.app
MIT License
351 stars 18 forks source link

fix: retry spawning session manager #42

Closed BohdanPetryshyn closed 1 year ago

BohdanPetryshyn commented 1 year ago

Summary

Sometimes, session-manager-plugin doesn't start the port forwarding session and just hangs up. This was leading to Basti never showing the success message and the port forwarding session itself never starting.

This PR introduces a timeout for the session-manager-plugin to start a session. If the session is not started in 30 seconds, the plugin is killed and restarted in 1 second.