This month's Index
Subject: Re: libssh2_sftp_write blocks for about 3 minutes
Re: libssh2_sftp_write blocks for about 3 minutes
From: Jerome Zimmermann <Jerome.Zimmermann_at_ipetronik.com>
Date: Mon, 13 Nov 2017 16:14:41 +0100
I got new insights about the behaviour that the CPU load remains at 100% in blocking mode.
For the sake of clarity, I will first re-explain the case of the problem.
The application (runs on a RTOS platform) establish a connection to a SFTP-Server
The libssh2 remains in the libssh2_sftp_write function.
Examining the return value of select() reveals that the socket is always
Besides, the keep-alive mechanism of the libssh2 is deactivated.
Is there a way to identify such a "broken connection" to break earlier the loop and so avoid a CPU load of 100% ?