Skip to content

Commit d5e6364

Browse files
committed
feat: CONN_LOAD_REJECT in perf count
1 parent 0154172 commit d5e6364

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

c_src/quicer_config.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,7 +2340,7 @@ get_global_opt(ErlNifEnv *env, HQUIC Handle, ERL_NIF_TERM optname)
23402340
NULL, QUIC_PARAM_GLOBAL_PERF_COUNTERS, &Length, &counters);
23412341
if (QUIC_SUCCEEDED(status))
23422342
{
2343-
ERL_NIF_TERM eCounters[30] = {
2343+
ERL_NIF_TERM eCounters[31] = {
23442344
/* clang-format off */
23452345
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_CONN_CREATED]),
23462346
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_CONN_HANDSHAKE_FAIL]),
@@ -2371,11 +2371,12 @@ get_global_opt(ErlNifEnv *env, HQUIC Handle, ERL_NIF_TERM optname)
23712371
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_PATH_VALIDATED]),
23722372
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_PATH_FAILURE]),
23732373
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_SEND_STATELESS_RESET]),
2374-
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_SEND_STATELESS_RETRY])
2374+
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_SEND_STATELESS_RETRY]),
2375+
enif_make_uint64(env, counters[QUIC_PERF_COUNTER_CONN_LOAD_REJECT])
23752376

23762377
/* clang-format on */
23772378
};
2378-
res = SUCCESS(enif_make_list_from_array(env, eCounters, 30));
2379+
res = SUCCESS(enif_make_list_from_array(env, eCounters, 31));
23792380
}
23802381
else
23812382
{

src/quicer.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,8 @@ perf_counters() ->
12831283
path_validated,
12841284
path_failure,
12851285
send_stateless_reset,
1286-
send_stateless_retry
1286+
send_stateless_retry,
1287+
conn_load_reject
12871288
],
12881289
case
12891290
quicer_nif:getopt(

0 commit comments

Comments
 (0)