ssh: set rekeying thresholds on construction 

The normal handshake kicks off with a waitSession(), which guarantees
that we never attempt to send data before the first kex is completed,
but ensuring readPacketsLeft > 0 and writePacketsLeft > 0 helps
understand that thresholds can never cause spurious rekeying at the
start of a connection.

Change-Id: If5bcafcda0c7d16fd21f22c664101ac5f5b487d7
Reviewed-by: Adam Langley <>
Run-TryBot: Adam Langley <>
TryBot-Result: Gobot Gobot <>
1 file changed