Schedule NCID frames upon obtaining 1-RTT write key
@@ -3625,9 +3625,9 @@ static int update_traffic_key_cb(ptls_update_traffic_key_t *self, ptls_t *tls, i
ret = quicly_send_resumption_token(conn);
assert(ret == 0);
}
- }
- /* NEW_CONNECTION_ID */
+ /* schedule NEW_CONNECTION_IDs */
+
/** active CIDs the peer currently has */
uint32_t n_cids_active = conn->egress.new_cid.last_path_id - conn->super.host.n_retired_cids;
/** how many CIDs can we additionally offer to the peer? active_connection_id_limit is uint64_t, hence this too */
@@ -3643,6 +3643,7 @@ static int update_traffic_key_cb(ptls_update_traffic_key_t *self, ptls_t *tls, i
return ret;
conn->egress.new_cid.last_path_id++;
}
+ }
return 0;
}
