Full_Name: Pierangelo Masarati Version: HEAD(/2.2,2.1?) OS: Linux (irrelevant) URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (81.72.89.40) Submitted by: ando When using cached connections, if the remote server is restarted for any reason, the old connection is never refreshed, so subsequent use of the cached connection results in "52 Server is unavailable" and no attempt is made to retry and establish a new cached connection. I guess the solution is to invalidate the connection in those cases, but I don't see at the moment a resonable diagnosis that works for different operations.
changed notes changed state Open to Test moved from Incoming to Software Bugs
The applied patch causes the first request after a remote server restart to fail with "52 Server is unavailable"; subsequent operations are fine. The fix could maybe be improved by directly retrying (at least once, if possible) when this particular error is detected. p. -- Pierangelo Masarati mailto:pierangelo.masarati@sys-net.it SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497
changed notes
changed state Test to Release
changed notes changed state Release to Closed
changed notes changed state Closed to Test
The following commits should help further with this issue, it does a single retry for each operation (except Bind, which always uses a fresh connection). -------- Original Message -------- From: hyc@OpenLDAP.org To: OpenLDAP Commit <openldap-commit2devel@OpenLDAP.org> Subject: commit: ldap/servers/slapd/back-ldap add.c back-ldap.h bind.c compare.c delete.c extended.c modify.c modrdn.c search.c Update of /repo/OpenLDAP/pkg/ldap/servers/slapd/back-ldap Modified Files: add.c 1.51 -> 1.52 back-ldap.h 1.58 -> 1.59 bind.c 1.81 -> 1.82 compare.c 1.50 -> 1.51 delete.c 1.35 -> 1.36 extended.c 1.20 -> 1.21 modify.c 1.56 -> 1.57 modrdn.c 1.36 -> 1.37 search.c 1.144 -> 1.145 Log Message: Add a retry for failed connections CVS Web URLs: http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/ http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/add.c http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/back-ldap.h http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/bind.c http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/compare.c http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/delete.c http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/extended.c http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/modify.c http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/modrdn.c http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/back-ldap/search.c Changes are generally available on cvs.openldap.org (and CVSweb) within 30 minutes of being committed. -- -- Howard Chu Chief Architect, Symas Corp. Director, Highland Sun http://www.symas.com http://highlandsun.com/hyc Symas: Premier OpenSource Development and Support
changed notes changed state Test to Release
moved from Software Bugs to Archive.Software Bugs
fixed in HEAD,re22