fixed sftp_shutdown() for the blockiness and fixed libssh2_channel_close()

to work properly non-blocking
This commit is contained in:
Daniel Stenberg
2009-03-27 20:20:48 +00:00
parent ad8b49b208
commit 4353711127
4 changed files with 114 additions and 72 deletions

View File

@@ -1,4 +1,4 @@
/* Copyright (c) 2004-2007, Sara Golemon <sarag@libssh2.org>
/* Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
* Copyright (c) 2009 by Daniel Stenberg
* All rights reserved.
*
@@ -1467,7 +1467,8 @@ libssh2_poll(LIBSSH2_POLLFD * fds, unsigned int nfds, long timeout)
}
if (active_fds) {
/* Don't block on the sockets if we have channels/listeners which are ready */
/* Don't block on the sockets if we have channels/listeners which
are ready */
timeout_remaining = 0;
}
#ifdef HAVE_POLL