[quote=“craigpatik”]Has anyone experienced an issue in OSX where SFTP seems to stop working after putting the MacBook to sleep? I can’t reproduce it every time, but it generally goes like this:
- Use Sublime as usual and upload files at will
- Close the MacBook lid
- Open the lid and start using Sublime again
- Try to upload a file (the active/open file, using a keyboard shortcut)
The quick panel opens, but no new “Uploading…” line appears. Instead I just see the same log that was present before, and the quick panel never changes or closes. The file does not get uploaded either. The only way to ‘wake up’ SFTP seems to be by quitting and reopening Sublime. (Is there a way I can try to manually restart just SFTP via the console?)[/quote]
When you machine goes to sleep, most likely your SFTP session is being lost, but not properly closed. When you awaken your machine, it will try to send a command and likely will fail after the default timeout for sftp on your platform. You probably will want to cancel the operation and try again: