Set CC algo to Cubic in demo
@@ -205,6 +205,8 @@ int quic_server(const char* server_name, int server_port,
}
qserver->mtu_max = mtu_max;
+ picoquic_set_default_congestion_algorithm(qserver, picoquic_cubic_algorithm);
+
/* TODO: add log level, to reduce size in "normal" cases */
PICOQUIC_SET_LOG(qserver, stdout);
@@ -559,6 +561,8 @@ int quic_client(const char* ip_address_text, int server_port, const char * sni,
if (ret == 0) {
qclient = picoquic_create(8, NULL, NULL, root_crt, alpn, NULL, NULL, NULL, NULL, NULL, current_time, NULL, ticket_store_filename, NULL, 0);
+ picoquic_set_default_congestion_algorithm(qclient, picoquic_cubic_algorithm);
+
if (qclient == NULL) {
ret = -1;
} else {
