You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update SFTP status callback to output once per second (wolfSSL#779)
* Update myStatusCb to output once per second
Modified the myStatusCb function in sftpclient.c to only output status
updates once per second by tracking the last output time and comparing
it with the current time. This reduces the frequency of status updates
while maintaining all existing functionality.
Co-Authored-By: [email protected] <[email protected]>
* Reset status output timer when starting new file transfer
When starting a new file transfer, reset the lastOutputTime to ensure
the first status update for the new file is shown immediately.
Co-Authored-By: [email protected] <[email protected]>
* Fix Zephyr build by guarding lastOutputTime with WOLFSSH_NO_TIMESTAMP
The lastOutputTime variable is only used when timestamps are enabled,
so it should be guarded by the same macro to avoid unused variable
warnings in builds where timestamps are disabled.
Co-Authored-By: [email protected] <[email protected]>
* Move elapsedTime declaration to function scope
Per wolfSSL coding standards, declare all variables at function scope.
Added comment explaining that modern compilers optimize variable access
regardless of declaration placement.
Co-Authored-By: [email protected] <[email protected]>
* Fix timeout check to use elapsed time instead of current time
Co-Authored-By: [email protected] <[email protected]>
* Use elapsed time in timeout error message for consistency
Co-Authored-By: [email protected] <[email protected]>
* Move elapsedTime inside WOLFSSH_NO_TIMESTAMP guard
Co-Authored-By: [email protected] <[email protected]>
* Move currentTime outside WOLFSSH_NO_TIMESTAMP guard
Co-Authored-By: [email protected] <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
0 commit comments