diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-09-20 12:45:37 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-09-20 18:53:25 +0200 |
commit | 3662d75fa3a2cbe52fd9008754b1b6222342308d (patch) | |
tree | abc5375679615e6d54d766ab48d7c4121c8eed4e /src/ipcpd | |
parent | 2df952d68587a6422f7462eee55c0f42904df4c9 (diff) | |
download | ouroboros-3662d75fa3a2cbe52fd9008754b1b6222342308d.tar.gz ouroboros-3662d75fa3a2cbe52fd9008754b1b6222342308d.zip |
ipcpd: Broadcast destruction of DHT requests0.20.0
When a request is cancelled/destroyed, all blocking threads should
exit. Noticed some hangs on the DHT, this seems to fix/reduce it.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/unicast/dir/dht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/unicast/dir/dht.c b/src/ipcpd/unicast/dir/dht.c index 7e4bd474..5b313e1f 100644 --- a/src/ipcpd/unicast/dir/dht.c +++ b/src/ipcpd/unicast/dir/dht.c @@ -449,7 +449,7 @@ static void kad_req_destroy(struct kad_req * req) return; case REQ_PENDING: req->state = REQ_DESTROY; - pthread_cond_signal(&req->cond); + pthread_cond_broadcast(&req->cond); break; case REQ_INIT: case REQ_DONE: |