www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: libssh2_sftp_write blocks for about 3 minutes

Re: libssh2_sftp_write blocks for about 3 minutes

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 21 Nov 2017 13:17:49 +0000

Jerome Zimmermann wrote:
> the socket is always ready for reading or writing even when the
> physical connection is no longer available.

That's a good find, it's the key point.

> Is there a way to identify such a "broken connection" to break
> earlier the loop and so avoid a CPU load of 100% ?

There probably is, but not in the application. This is a TCP stack
tunable, so you have to study what your operating system allows you
to configure.

libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2017-11-21

the libssh2 team