[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timeout in channel_open_session
[Thread Prev] | [Thread Next]
- Subject: Re: Timeout in channel_open_session
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 10 Aug 2010 11:43:39 +0200
- To: libssh@xxxxxxxxxx
Le 10/08/10 11:00, Valentin Rodygin a écrit : > The question is – how can I specify a reasonable timeout for > channel_open_session calls or how else can I work this situation around? Hi Valentin, The problem is that the timeout option only works on the ssh_connect part and not on the whole socket thing. This is a known limitation of libssh 0.4 which should be mitigated in libssh 0.5. (don't hold your breath). As a workaround, you should use ssh_get_fd() and do some low level sysctl magic to ask the OS (linux, bsd, windows ?) to shut down the connection after a specific time without response. kr, Aris
Re: Timeout in channel_open_session | Valentin Rodygin <carterqw@xxxxxxxxxxxxxx> |
Timeout in channel_open_session | Valentin Rodygin <carterqw@xxxxxxxxxxxxxx> |