corgibytes / sftp_server

A simple SFTP server for testing clients
MIT License
9 stars 7 forks source link

Retry freeing a channel up to 3 times if it fails #3

Closed rbishop closed 9 years ago

rbishop commented 9 years ago

ssh_channel_free fails quite often. Rather than immediately raise an exception we should retry freeing the channel. This change will retry freeing the channel up to 3 times with a 50ms wait in between. I've found this to make our tests that use a SFTP server much more reliable.

mscottford commented 9 years ago

Awesome! Thanks for sharing this change. I'm glad you're getting value out of it.