Deleted Added
full compact
serverloop.c (162856) serverloop.c (164149)
1/* $OpenBSD: serverloop.c,v 1.144 2006/08/03 03:34:42 deraadt Exp $ */
1/* $OpenBSD: serverloop.c,v 1.145 2006/10/11 12:38:03 markus Exp $ */
2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 * All rights reserved
6 * Server main loop for handling the interactive session.
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this

--- 233 unchanged lines hidden (view full) ---

243}
244
245static void
246client_alive_check(void)
247{
248 int channel_id;
249
250 /* timeout, check to see how many we have had */
2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 * All rights reserved
6 * Server main loop for handling the interactive session.
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this

--- 233 unchanged lines hidden (view full) ---

243}
244
245static void
246client_alive_check(void)
247{
248 int channel_id;
249
250 /* timeout, check to see how many we have had */
251 if (++client_alive_timeouts > options.client_alive_count_max)
252 packet_disconnect("Timeout, your session not responding.");
251 if (++client_alive_timeouts > options.client_alive_count_max) {
252 logit("Timeout, client not responding.");
253 cleanup_exit(255);
254 }
253
254 /*
255 * send a bogus global/channel request with "wantreply",
256 * we should get back a failure
257 */
258 if ((channel_id = channel_find_open()) == -1) {
259 packet_start(SSH2_MSG_GLOBAL_REQUEST);
260 packet_put_cstring("keepalive@openssh.com");

--- 957 unchanged lines hidden ---
255
256 /*
257 * send a bogus global/channel request with "wantreply",
258 * we should get back a failure
259 */
260 if ((channel_id = channel_find_open()) == -1) {
261 packet_start(SSH2_MSG_GLOBAL_REQUEST);
262 packet_put_cstring("keepalive@openssh.com");

--- 957 unchanged lines hidden ---