version 1.175, 2006/08/03 03:34:42 |
version 1.175.4.1, 2006/11/08 00:42:10 |
|
|
static void |
static void |
server_alive_check(void) |
server_alive_check(void) |
{ |
{ |
if (++server_alive_timeouts > options.server_alive_count_max) |
if (++server_alive_timeouts > options.server_alive_count_max) { |
packet_disconnect("Timeout, server not responding."); |
logit("Timeout, server not responding."); |
|
cleanup_exit(255); |
|
} |
packet_start(SSH2_MSG_GLOBAL_REQUEST); |
packet_start(SSH2_MSG_GLOBAL_REQUEST); |
packet_put_cstring("keepalive@openssh.com"); |
packet_put_cstring("keepalive@openssh.com"); |
packet_put_char(1); /* boolean: want reply */ |
packet_put_char(1); /* boolean: want reply */ |