Issue 7476 - patch for ldap_pvt_connect
Summary: patch for ldap_pvt_connect
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.32
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-19 08:10 UTC by codehero@gmail.com
Modified: 2014-08-01 21:04 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 codehero@gmail.com 2012-12-19 08:10:51 UTC
Full_Name: David Bender
Version: 2.4.32
OS: Linux
URL: 
Submission from: (NULL) (96.236.148.85)


ldap_pvt_connect() in libldap/os-ip.c fails intermittently when the calling
program also runs child processes. The connect() call fails with EINTR, but no
effort is made to retry the connect(). The following patches add support for
retrying in this case, as well as toggling the behaviour with LDAP_OPT_RESTART.


Patches are available and should be applied in this order (applied to current
HEAD):

https://github.com/benegon/openldap/commit/8e4fee39bfccaa3dd15179fb6451d39770479ce5.patch
https://github.com/benegon/openldap/commit/991941e3b51fea44d5f123f24a0f32062b2358a8.patch
Comment 1 Howard Chu 2013-01-09 17:13:01 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Howard Chu 2013-01-09 17:13:31 UTC
codehero@gmail.com wrote:
> Full_Name: David Bender
> Version: 2.4.32
> OS: Linux
> URL:
> Submission from: (NULL) (96.236.148.85)
>
>
> ldap_pvt_connect() in libldap/os-ip.c fails intermittently when the calling
> program also runs child processes. The connect() call fails with EINTR, but no
> effort is made to retry the connect(). The following patches add support for
> retrying in this case, as well as toggling the behaviour with LDAP_OPT_RESTART.
>
>
> Patches are available and should be applied in this order (applied to current
> HEAD):
>
> https://github.com/benegon/openldap/commit/8e4fee39bfccaa3dd15179fb6451d39770479ce5.patch
> https://github.com/benegon/openldap/commit/991941e3b51fea44d5f123f24a0f32062b2358a8.patch

Thanks for the patches, now in master.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 3 Quanah Gibson-Mount 2013-01-09 20:52:22 UTC
changed notes
changed state Test to Release
Comment 4 Quanah Gibson-Mount 2013-03-05 02:25:12 UTC
changed notes
changed state Release to Closed
Comment 5 OpenLDAP project 2014-08-01 21:04:45 UTC
applied to master
applied to RE24