diff options
author | dimitri staessens <[email protected]> | 2017-09-24 21:43:05 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-09-24 22:00:20 +0200 |
commit | a8ec5017e0a4452f520c90f68dc049d28a922690 (patch) | |
tree | f15df5de41e270829f3cbca9e876d15e39fd1781 /src/irmd/apn_table.h | |
parent | ff5063ad0e7902ce59864a466bd9d8d606d788e4 (diff) | |
download | ouroboros-a8ec5017e0a4452f520c90f68dc049d28a922690.tar.gz ouroboros-a8ec5017e0a4452f520c90f68dc049d28a922690.zip |
ipcpd: Fix deadlock in DHT
The lookup_update was waiting for the LU_INIT state to resolve under
dht->lock which prevented that update.
This PR fixes this bug, but leaves a (very rare) bug when the
lookup_destroy is called while the lookup_update is waiting for the
LU_INIT state to resolve. The solution also is a (harmless) lock
inversion, but this is also not the best.
Fixes #51
Fixes #52
Diffstat (limited to 'src/irmd/apn_table.h')
0 files changed, 0 insertions, 0 deletions