stechstudio / laravel-ssh-tunnel

Easy creation & maintenance of an SSH Tunnel for Laravel/Lumen
MIT License
191 stars 49 forks source link

Added env variable to increase the amount of connection checks #18

Closed Ap3rtur3 closed 6 years ago

Ap3rtur3 commented 6 years ago

The creation of tunnel connections varies between 1 to 10 seconds on our dev servers. This means that the tunneler declares a connection failure on short wait times (even though it just took longer than expected). Configuring longer wait times (like 10 seconds for example) seems pretty inefficient to me.

My solution is a simple loop which runs the configured amount of times. This leads to short waiting times while still supporting long connection creation times.