[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to set up timeout
[Thread Prev] | [Thread Next]
- Subject: Re: How to set up timeout
- From: Franciszek Juras <franciszekjuras@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 9 Apr 2019 12:51:07 +0200
- To: libssh@xxxxxxxxxx
- Cc: Andreas Schneider <asn@xxxxxxxxxxxxxx>
I repeat the question, as it's very important to me. How can I set timeout, after which functions like ssh_channel_request_exec or sftp_open fail if connection was lost? I use version 0.8.6. FJ niedz., 7 kwi 2019 o 09:42 Andreas Schneider <asn@xxxxxxxxxxxxxx> napisał(a): > On Saturday, 6 April 2019 19:27:03 CEST Franciszek Juras wrote: > > Hi, > > I noticed, that functions like ssh_channel_request_exec or sftp_open > never > > return (or it takes very long time - didn't wait) if the connection is > > lost. I tried setting SSH_OPTIONS_TIMEOUT with ssh_options_set, but it > > didn't change anything. > > > > So how can I prevent functions from blocking forever? Why only few > > functions have *_timeout versions? > > Which version of libssh do you use? > > > >
How to set up timeout | Franciszek Juras <franciszekjuras@xxxxxxxxx> |
Re: How to set up timeout | Andreas Schneider <asn@xxxxxxxxxxxxxx> |