forked from whitemike889/sftp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drain inFlight packets in read/write methods
Fixes issue pkg#167 File read/write client methods were breaking out of the packet handling loops with packets still 'in flight' (packets sent without reply from server) when errors occured. This caused problems after the fact with the returning packets interfearing with later calls. This change makes sure all the in flight packets are processed (even if just discarded) before breaking out of the loop and returning.
- Loading branch information
Showing
1 changed file
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters