Skip to content

Commit

Permalink
Fixes skupperproject#1397: Additional fix. Move the qd_connection_cou…
Browse files Browse the repository at this point in the history
…nter_dec inside connection check (skupperproject#1419)
  • Loading branch information
ganeshmurthy authored Feb 14, 2024
1 parent 0806fa4 commit 1704189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adaptors/http2/http2_adaptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -2974,9 +2974,10 @@ static void egress_conn_timer_handler(void *context)
sys_mutex_unlock(qd_server_get_activation_lock(http2_adaptor->core->qd->server));
if (conn->qdr_conn) {
qdr_connection_closed(conn->qdr_conn);
qd_connection_counter_dec(QD_PROTOCOL_HTTP2);
conn->qdr_conn = 0;
}
qd_connection_counter_dec(QD_PROTOCOL_HTTP2);

if (conn->connection_status == QD_CONNECTION_NEW)
free_qdr_http2_connection(conn, false);
return;
Expand Down

0 comments on commit 1704189

Please sign in to comment.