- 
                Notifications
    
You must be signed in to change notification settings  - Fork 95
 
Open
Labels
Description
Hi!
I am wondering - aren't WS_WANT_READ/WRITE non-fatal errors by design? See here:
Lines 411 to 419 in ceb4618
| /* A few errors are OK to get. They are a notice rather that a fault. | |
| * return TRUE if ssh->error is one of the following: */ | |
| static INLINE int NoticeError(WOLFSSH* ssh) | |
| { | |
| return (ssh->error == WS_WANT_READ || | |
| ssh->error == WS_WANT_WRITE || | |
| ssh->error == WS_CHAN_RXD || | |
| ssh->error == WS_REKEYING); | |
| } | 
But what about this:
Lines 1573 to 1577 in ceb4618
| if (wolfSSH_SFTP_buffer_idx(&state->buffer) | |
| < wolfSSH_SFTP_buffer_size(&state->buffer)) { | |
| ssh->error = WS_WANT_WRITE; | |
| return WS_FATAL_ERROR; | |
| } | 
Thanks!