Skip Menu |

This queue is for tickets about the perl-ldap CPAN distribution.

Report information
The Basics
Id: 83039
Status: open
Priority: 0/
Queue: perl-ldap

Owner: Nobody in particular
Requestors: quanah.gibsonmount [...]

Bug Information
Severity: Wishlist
Broken in: 0.53
Fixed in: (no value)

Subject: Add TCP keepalive modification support for Linux
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1359501563-28444-12"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 1642
Download (untitled) / with headers
text/plain 1.6k
This patch adds support for modifying various TCP keepalive parameters if Socket::Linux is installed. This is significant, as the default keepalive settings are for 2 hours, while many institutions set their firewalls, etc, to lower thresh holds for dropping connections. If keepalive is set to 1 and Socket::Linux is available, then the following 3 items can be set: =item keepalive_idle =E<gt> N The time (in seconds) the connection needs to remain idle before TCP starts sending keepalive probes, if the socket option SO_KEEPALIVE has been set on this socket. Only works if Socket::Linux is available. =item keepalive_interval =E<gt> N The time (in seconds) between individual keepalive probes. Only works if Socket::Linux is available. =item keepalive_probe =E<gt> N The maximum number of keepalive probes TCP should send before dropping the connection. Only works if Socket::Linux is available. At my work, I was able to test this, given that we have two servers with a firewall in between, that closes connections that are idle for 30 minutes. just sets keepalive to 1: [zimbra@edge01-zcs tmp]$ ./ First size is: 2985 Sleeping 31 minutes Starting second search. ERROR: Unable to verify ldap connection - exiting You can see after 31 minutes, the connection had been closed by the firewall, and it was unable to do a second search. uses the new parameters to lower the thresh hold for sending probes from 2 hours to 5 minutes. Its results are much better: [zimbra@edge01-zcs ~]$ /tmp/ First size is: 2985 Sleeping 31 minutes Starting second search. Second size is: 2985
Subject: net-ldap-keepalive.patch.gz
MIME-Version: 1.0
Content-Type: application/gzip; name="net-ldap-keepalive.patch.gz"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="net-ldap-keepalive.patch.gz"
Content-Transfer-Encoding: base64
Content-Length: 972
Download net-ldap-keepalive.patch.gz
application/gzip 972b

Message body not shown because it is not plain text.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to