#199: Endless poll in libssh2_sftp_write
----------------------+-----------------------------------------------------
Reporter: josusky | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.2.8
Component: SFTP | Version: 1.2.7
Keywords: | Blocks:
Blocked By: |
----------------------+-----------------------------------------------------
When connection is interrupted in the middle of libssh2_sftp_write (e.g.
by ifdown) it hangs in syscall poll:
{{{
#0 0x00007fb84a385203 in __poll (..., timeout=-1) at
../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fb8481c7788 in _libssh2_wait_socket (...) at session.c:585
#2 0x00007fb8481c9c83 in libssh2_sftp_write (...) at sftp.c:1606
}}}
Even if the interface goes up the application does not recover.
I tested it with 1.2.7 as well as snapshot of 1.2.8.
-- Ticket URL: <http://trac.libssh2.org/ticket/199> libssh2 <http://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-11-26