From cc214ffb170de9809c3911273996eace4a9d7bfc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 20 Feb 2013 11:39:26 +0100 Subject: [PATCH] Avoid dead-lock between host->mutex and session lock Simply do not call non_block_events. It does nothing in the case of a timeout. --- src/connection.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/connection.c b/src/connection.c index ce9b46d..4c165e0 100644 --- a/src/connection.c +++ b/src/connection.c @@ -319,8 +319,6 @@ static void connection_handler(IOCHAN iochan, int event) { ZOOM_connection_fire_event_timeout(co->link); - non_block_events(cl, co); - remove_connection_from_host(co); yaz_mutex_leave(host->mutex); connection_destroy(co); -- 1.7.10.4