diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-05-20 14:33:04 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-05-20 23:06:45 +0200 |
commit | b0143a2a33f0e577b1c2c9a407ac081418b5ea6b (patch) | |
tree | ef8d61a23c8829f6cc28ecc8014753b35cc6b28e /lib/ssh.c | |
parent | 6a688976f07576ca8209dbe29fe2e93e2b41db8c (diff) | |
download | curl-b0143a2a33f0e577b1c2c9a407ac081418b5ea6b.tar.gz |
read_callback: move to SessionHandle from connectdata
With many easy handles using the same connection for multiplexing, it is
important we store and keep the transfer-oriented stuff in the
SessionHandle so that callbacks and callback data work fine even when
many easy handles share the same physical connection.
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1737,8 +1737,8 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) BUFSIZE : curlx_sotouz(data->state.resume_from - passed); size_t actuallyread = - conn->fread_func(data->state.buffer, 1, readthisamountnow, - conn->fread_in); + data->set.fread_func(data->state.buffer, 1, readthisamountnow, + data->set.in); passed += actuallyread; if((actuallyread == 0) || (actuallyread > readthisamountnow)) { |