Skip to content

Commit 5ebdd89

Browse files
author
Pan
committed
Handle EAGAIN for channel and sftp writes correctly and return rc, bytes_written tuple so clients can resume from last written byte on next call to write.
Updated docstrings for channel write functions, tests, travis cfg, flake8 configuration for sftp.
1 parent 26a372b commit 5ebdd89

File tree

9 files changed

+1594
-731
lines changed

9 files changed

+1594
-731
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ install:
2222
- python setup.py build_ext --inplace
2323
- eval "$(ssh-agent -s)"
2424
script:
25-
- export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu
2625
- nosetests
2726
- flake8 ssh2
2827
# Test source distribution builds

Changelog.rst

+11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
Change Log
22
=============
33

4+
0.17.0
5+
+++++++
6+
7+
Changes
8+
--------
9+
10+
* ``SFTPHandle.write`` function changed to return tuple of ``return_code, bytes_written`` for non-blocking applications to be able to handle partial writes within an SFTP write resulting from a blocked socket.
11+
* ``Channel.write*`` functions changed to return tuple of ``return_code, bytes_written`` as above.
12+
13+
Behaviour in blocking mode has not changed. Non-blocking applications will now need to handle these functions returning a tuple and resume writes from last written offset of given data.
14+
415
0.16.0
516
+++++++
617

0 commit comments

Comments
 (0)