diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-07-02 12:49:51 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-07-02 12:49:51 +0200 |
commit | 0963716b3fd30a0900c22884bcd52f04d556fb67 (patch) | |
tree | 05b88b78b9a84f98a2626ca31da7e35fcf231d9e /src/win32/pthread.h | |
parent | 28f087c8642ff9c8dd6964e101e6d8539db6281a (diff) | |
download | libgit2-cmn/ssh-send-everything.tar.gz |
ssh: libssh2_channel_write() behaves like send()cmn/ssh-send-everything
When the stream writing function was written, it assume that
libssh2_channel_write() would always write all of the data to the
wire. This is only true for the first 32k of data, which it tries to
fit into one ssh packet.
Since it can perform short writes, call it in a loop like we do for
send(), advancing the buffer offset.
Diffstat (limited to 'src/win32/pthread.h')
0 files changed, 0 insertions, 0 deletions