sftp upload: expire to advance state machine
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 Mar 2011 22:02:04 +0000 (23:02 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 Mar 2011 22:02:04 +0000 (23:02 +0100)
commitcccba72920ace26f1ecdf496546a2441304df410
tree8fa3efab6d26ae9e7667b011b4024357eb1e1cb0
parent7612ca2a7e9f0230ab4166e8b0a5abb2557d242c
sftp upload: expire to advance state machine

When using the multi_socket API to do SFTP upload, it is important that
we set a quick expire when leaving the SSH_SFTP_UPLOAD_INIT state as
there's nothing happening on the socket so there's no read or write to
wait for, but the next libssh2 API function needs to be called to get
the ball rolling.

This is one of the problems detected by test 582.

Reported by: Henry Ludemann <misc@hl.id.au>
lib/ssh.c