|
Lines 149-155
static int connection_in; /* Connection
Link Here
|
| 149 |
static int connection_out; /* Connection to server (output). */ |
149 |
static int connection_out; /* Connection to server (output). */ |
| 150 |
static int need_rekeying; /* Set to non-zero if rekeying is requested. */ |
150 |
static int need_rekeying; /* Set to non-zero if rekeying is requested. */ |
| 151 |
static int session_closed = 0; /* In SSH2: login session closed. */ |
151 |
static int session_closed = 0; /* In SSH2: login session closed. */ |
| 152 |
static int server_alive_timeouts = 0; |
|
|
| 153 |
|
152 |
|
| 154 |
static void client_init_dispatch(void); |
153 |
static void client_init_dispatch(void); |
| 155 |
int session_ident = -1; |
154 |
int session_ident = -1; |
|
Lines 457-478
client_check_window_change(void)
Link Here
|
| 457 |
} |
456 |
} |
| 458 |
|
457 |
|
| 459 |
static void |
458 |
static void |
| 460 |
client_global_keepalive(int type, u_int32_t seq, void *ctxt) |
|
|
| 461 |
{ |
| 462 |
server_alive_timeouts = 0; |
| 463 |
} |
| 464 |
|
| 465 |
static void |
| 466 |
client_global_request_reply(int type, u_int32_t seq, void *ctxt) |
459 |
client_global_request_reply(int type, u_int32_t seq, void *ctxt) |
| 467 |
{ |
460 |
{ |
| 468 |
server_alive_timeouts = 0; |
461 |
keep_alive_timeouts = 0; |
| 469 |
client_global_request_reply_fwd(type, seq, ctxt); |
462 |
client_global_request_reply_fwd(type, seq, ctxt); |
| 470 |
} |
463 |
} |
| 471 |
|
464 |
|
| 472 |
static void |
465 |
static void |
| 473 |
server_alive_check(void) |
466 |
server_alive_check(void) |
| 474 |
{ |
467 |
{ |
| 475 |
if (++server_alive_timeouts > options.server_alive_count_max) { |
468 |
if (++keep_alive_timeouts > options.server_alive_count_max) { |
| 476 |
logit("Timeout, server not responding."); |
469 |
logit("Timeout, server not responding."); |
| 477 |
cleanup_exit(255); |
470 |
cleanup_exit(255); |
| 478 |
} |
471 |
} |
|
Lines 2068-2075
client_init_dispatch_20(void)
Link Here
|
| 2068 |
/* global request reply messages */ |
2061 |
/* global request reply messages */ |
| 2069 |
dispatch_set(SSH2_MSG_REQUEST_FAILURE, &client_global_request_reply); |
2062 |
dispatch_set(SSH2_MSG_REQUEST_FAILURE, &client_global_request_reply); |
| 2070 |
dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &client_global_request_reply); |
2063 |
dispatch_set(SSH2_MSG_REQUEST_SUCCESS, &client_global_request_reply); |
| 2071 |
dispatch_set(SSH2_MSG_IGNORE, &client_global_keepalive); |
|
|
| 2072 |
dispatch_set(SSH2_MSG_UNIMPLEMENTED, &client_global_keepalive); |
| 2073 |
} |
2064 |
} |
| 2074 |
static void |
2065 |
static void |
| 2075 |
client_init_dispatch_13(void) |
2066 |
client_init_dispatch_13(void) |