Subject: Re: libssh2_sftp_write blocks for about 3 minutes

Re: libssh2_sftp_write blocks for about 3 minutes

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Dec 2017 17:39:30 +0100 (CET)

On Tue, 5 Dec 2017, Pan K via libssh2-devel wrote:

> Since the undesirable behaviour is the high CPU usage when the socket is not
> available, would not running the SFTP transfer in non-blocking mode help?  

Busy-looping like that is a bug, so if libssh2 does it it is a bug we should
track down and fix. You could probably use non-blocking mode as a work-around,
as then you can handle the looping in your own code.

-- 
  / daniel.haxx.se

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2017-12-05