https://bugzilla.mindrot.org/show_bug.cgi?id=2252

            Bug ID: 2252
           Summary: RekeyLimit breaks ClientAlive
           Product: Portable OpenSSH
           Version: 6.6p1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: sshd
          Assignee: [email protected]
          Reporter: [email protected]

If RekeyLimit is enabled, ClientAlive messages will not be sent, ever!

Problem seems to be:

serverloop.c: 
   wait_until_can_do_something(...)

max_time_milliseconds is set to the remaining time to a rekey. 

client_alive_scheduled never gets set, as max_time_milliseconds!=0:

if (compat20 &&
  max_time_milliseconds == 0 && options.client_alive_interval) {
    client_alive_scheduled = 1;
    max_time_milliseconds =
     (u_int64_t)options.client_alive_interval * 1000;
  }

The if clause might need changed to something like this:

if (compat20 &&
  max_time_milliseconds > ((u_int64_t)options.client_alive_interval *
1000)  && 
  options.client_alive_interval) {
 ...

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to