Skip to content

Commit

Permalink
[~] adjust resource limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanmei-Liu committed Dec 4, 2024
1 parent 5d89d8b commit 666d3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transport/xqc_multipath.c
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ xqc_conn_update_max_path_id(xqc_connection_t *conn)
xqc_int_t ret = XQC_OK;
uint64_t pre_max_path_id = conn->local_max_path_id;
conn->local_max_path_id += (conn->local_max_path_id + 1) / 2;
conn->local_max_path_id = xqc_max(conn->local_max_path_id, conn->max_paths_count);
conn->local_max_path_id = xqc_min(conn->local_max_path_id, conn->max_paths_count);
if (xqc_conn_add_path_cid_sets(conn, pre_max_path_id + 1, conn->local_max_path_id) != XQC_OK) {
xqc_log(conn->log, XQC_LOG_ERROR, "|add_path_cid_sets_error|");
return -XQC_EMALLOC;
Expand Down

0 comments on commit 666d3c2

Please sign in to comment.