https://wolfssl.zendesk.com/agent/tickets/17964
Issue:
wolfSSH_SFTP_STAT doesn't check the server connection in it.
If it is disconnected after wolfSSH_connect, the API alone doesn't detect
the disconnection and return WS_SUCCESS.
The issue is only the case wolfSSH_SFTP_STAT alone is used. sftpclient uses wolfSSH_SFTP_STAT
with stream read/write so it detects the missing connection.
https://wolfssl.zendesk.com/agent/tickets/17964 Issue: wolfSSH_SFTP_STAT doesn't check the server connection in it. If it is disconnected after wolfSSH_connect, the API alone doesn't detect the disconnection and return WS_SUCCESS.
The issue is only the case wolfSSH_SFTP_STAT alone is used. sftpclient uses wolfSSH_SFTP_STAT with stream read/write so it detects the missing connection.