[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: idletimeout issue (ITS#767)



At 03:27 PM 9/22/00 +0000, ariedrec@esoterica.pt wrote:
>Full_Name: J. Cameijo Cerdeira
>Version: 2.0.3
>OS: linux 2.2.12
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (212.55.140.11)
>
>
>Hello,
>
>Setting the idletimeout parammeter in slapd.conf to any value > 0 results in a 
>slapd hangup.
>
>After browsing connection.c , it seems to me that connections_timeout_idle() 
>tries to lock connection_mutex and then, when connection_first() is called,
>a new lock is tried which results in a deadlock situation.

Without recursive locks, yes.  I've patched this in devel.

>Furthermore, again in connections_timeout_idle(), i believe connection_done()
>should be called inside de for(;;) loop.

I belive this would incorrect.

Kurt