Skip to content

Commit

Permalink
DO NOT MERGE: test if lock removal is safe
Browse files Browse the repository at this point in the history
  • Loading branch information
kgiusti committed Apr 1, 2024
1 parent 35cb346 commit 7461f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,9 +723,9 @@ static void on_connection_bound(qd_server_t *server, pn_event_t *e) {
pn_transport_set_server(tport);
set_rhost_port(ctx);

sys_mutex_lock(&server->lock); /* Policy check is not thread safe */
//sys_mutex_lock(&server->lock); /* Policy check is not thread safe */
ctx->policy_counted = qd_policy_socket_accept(server->qd->policy, ctx->rhost);
sys_mutex_unlock(&server->lock);
//sys_mutex_unlock(&server->lock);
if (!ctx->policy_counted) {
pn_transport_close_tail(tport);
pn_transport_close_head(tport);
Expand Down

0 comments on commit 7461f99

Please sign in to comment.