Skip to content

Commit

Permalink
Fixes skupperproject#1202: Set the conn->raw_opened atomic flag befor…
Browse files Browse the repository at this point in the history
…e calling pn_proactor_raw_connect() (skupperproject#1229)
  • Loading branch information
ganeshmurthy authored Sep 25, 2023
1 parent 3d47404 commit ac18bdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adaptors/tcp_lite/tcp_lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,9 +998,10 @@ static void handle_first_outbound_delivery_CSIDE(tcplite_connector_t *cr, qdr_li
// The raw connection establishment must be the last thing done in this function.
// After this call, a separate IO thread may immediately be invoked in the context
// of the new connection to handle raw connection events.
// ISSUE-1202 - Set the conn->raw_opened flag before calling pn_proactor_raw_connect()
//
pn_proactor_raw_connect(tcplite_context->proactor, conn->raw_conn, cr->adaptor_config->host_port);
SET_ATOMIC_FLAG(&conn->raw_opened);
pn_proactor_raw_connect(tcplite_context->proactor, conn->raw_conn, cr->adaptor_config->host_port);
}


Expand Down

0 comments on commit ac18bdc

Please sign in to comment.