[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Check if host is available
[Thread Prev] | [Thread Next]
- Subject: Re: Check if host is available
- From: "Oliver Stöneberg" <oliverst@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Reply-to: oliverst@xxxxxxxxx
- Date: Wed, 03 Aug 2011 17:16:31 +0200
- To: libssh@xxxxxxxxxx
> >> if I try to connect to a host via ssh_connect() and the host isn't > >> available the function blocks. > > did you set a timeout? > No, thanks for the advice! That actually didn't work until the 0.5.0 release :) > This could be the solution for my next problem. I want to detect if > someone for example unplugged the network cable while a ssh session is > running. I have no idea how to do this, but if this happens libssh is/was prone to hang since there are still polls without an timeout. That's similar to the situation you had with ssh_connect(). I actually encountered a very serious ones, that was actually happening with exec, but I haven't gotten access to a sample machine yet, so I couldn't find out what was going on. It was limited to that custom system though and is reproducible.
Re: Check if host is available | Thomas Mayer <tm.telemotive@xxxxxx> |
Check if host is available | Thomas Mayer <tm.telemotive@xxxxxx> |
Re: Check if host is available | Andreas Schneider <asn@xxxxxxxxxxxxxx> |
Re: Check if host is available | Thomas Mayer <tm.telemotive@xxxxxx> |