Skip to content

v1.4.0

Compare
Choose a tag to compare
@elliotchance elliotchance released this 14 Feb 20:36
· 3 commits to master since this release
27700fc
Add connection retry with MaxConnectionAttempts (#16)

The application using this library hangs (never exits) if the SSH tunnel is being
used by a lots of goroutines and an error occurs in the forward() method when a connection
is being made. Connection attempts seem to intermittently fail, and this somehow leads to the code
never exiting when complete.

I found that the connection attempt would succeed after 1 or 2 retries, then the application would later
exit like normal. This PR adds a optional retry mechanism. It must be enabled with MaxConnectionAttempts.

Fixed #15