comparison common-session.c @ 968:f7f6c15b0ec3

Don't send SSH_MSG_UNIMPLEMENTED for keepalive responses
author Matt Johnston <matt@ucc.asn.au>
date Wed, 13 Aug 2014 21:48:47 +0800
parents 5daedffd0769
children 0bb16232e7c4
comparison
equal deleted inserted replaced
967:02821319ab1f 968:f7f6c15b0ec3
392 buf[pos] = '\0'; 392 buf[pos] = '\0';
393 TRACE(("leave ident_readln: return %d", pos+1)) 393 TRACE(("leave ident_readln: return %d", pos+1))
394 return pos+1; 394 return pos+1;
395 } 395 }
396 396
397 void ignore_recv_msg_request_failure() {
398 // Do nothing
399 TRACE(("Ignored msg_request_failure"))
400 }
401
397 static void send_msg_keepalive() { 402 static void send_msg_keepalive() {
398 CHECKCLEARTOWRITE(); 403 CHECKCLEARTOWRITE();
399 time_t old_time_idle = ses.last_packet_time_idle; 404 time_t old_time_idle = ses.last_packet_time_idle;
400 /* Try to force a response from the other end. Some peers will 405 /* Try to force a response from the other end. Some peers will
401 reply with SSH_MSG_REQUEST_FAILURE, some will reply with SSH_MSG_UNIMPLEMENTED */ 406 reply with SSH_MSG_REQUEST_FAILURE, some will reply with SSH_MSG_UNIMPLEMENTED */