Issue 767 - idletimeout issue
Summary: idletimeout issue
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-22 15:27 UTC by ariedrec@esoterica.pt
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ariedrec@esoterica.pt 2000-09-22 15:27:48 UTC
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. 
Furthermore, again in connections_timeout_idle(), i believe connection_done()
should be called inside de for(;;) loop.

thanx,
JCC
Comment 1 Kurt Zeilenga 2000-09-22 16:22:36 UTC
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

Comment 2 Kurt Zeilenga 2000-09-23 11:33:18 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 3 Kurt Zeilenga 2000-09-28 10:54:59 UTC
changed notes
changed state Test to Release
Comment 4 Kurt Zeilenga 2000-10-03 17:18:34 UTC
changed notes
changed state Release to Closed
Comment 5 Kurt Zeilenga 2002-06-18 20:31:47 UTC
moved from Software Bugs to Archive.Software Bugs
Comment 6 OpenLDAP project 2014-08-01 21:06:54 UTC
fixed in devel
fixed in re20