Skip to content

Fixes call home deadlock#581

Merged
michalvasko merged 4 commits intodevelfrom
ch-deadlock-fix
Mar 11, 2026
Merged

Fixes call home deadlock#581
michalvasko merged 4 commits intodevelfrom
ch-deadlock-fix

Conversation

@Roytak
Copy link
Collaborator

@Roytak Roytak commented Mar 11, 2026

CESNET/netopeer2#1787

  • fix sync of multiple threads applying a new config
  • fix a deadlock when a CH client starts listening before the server creates a new CH endpoint - cause by a double read lock acqusition

Roytak added 4 commits March 11, 2026 13:06
Whenever a CH client is listening before a CH endpoint is created by the
server, a deadlock happens where the server's CH thread tries to grab
the config READ lock for a second time in ignored mod check (grabs it
for the 1st time in ch_client_thread). The config applying thread then
gets hung up in apply_diff on WRITE lock acquisition.

This commit removes the 2nd READ lock acquisition of the CH thread,
removing the deadlock scenario.

Fixes CESNET/netopeer2#1787
@michalvasko michalvasko merged commit 9b26e19 into devel Mar 11, 2026
8 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants