Correct timeout scale
@@ -873,7 +873,7 @@ void picoquic_init_transport_parameters(picoquic_tp_t* tp, int client_mode)
tp->initial_max_data = 0x100000;
tp->initial_max_streams_bidi = 10000;
tp->initial_max_streams_uni = 10000;
- tp->max_idle_timeout = PICOQUIC_MICROSEC_HANDSHAKE_MAX/1000000;
+ tp->max_idle_timeout = PICOQUIC_MICROSEC_HANDSHAKE_MAX/1000;
tp->max_packet_size = PICOQUIC_PRACTICAL_MAX_MTU;
tp->ack_delay_exponent = 3;
tp->supported_plugins = NULL;
@@ -2237,7 +2237,7 @@ void picoquic_enable_keep_alive(picoquic_cnx_t* cnx, uint64_t interval)
idle_timeout = cnx->remote_parameters.max_idle_timeout;
}
/* convert to microseconds */
- idle_timeout *= 1000000;
+ idle_timeout *= 1000;
/* set interval to half that value */
cnx->keep_alive_interval = idle_timeout / 2;
} else {
