389 slapd process isn't sending keepalive (I wasn't able to find any reference in the source code too) packets to the client if the client isn't capable to open the socket with SO_KEEPALIVE enabled (RHEL5 pam_ldap.so,linked against libldap-2.3*)
as far as I've understood (from ohter posts) one should use the 'IDLE Timeout' value instead ? is this correct or is the code missing the socket options ?
kind regards Michael Lang
as seen in the tcpdump, the keepalive packets are not sent, instead the connection get's closed after the 'Idle Timeout' value.
$ telnet localhost 389 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host.
$ tcpdump -nnNi any port 389 10:19:50.020052 IP 127.0.0.1.57004 > 127.0.0.1.389: Flags [S], seq 958477599, win 14600, options [mss 1460,sackOK,TS val 1287781056 ecr 0,nop,wscale 7], length 0 10:19:50.020104 IP 127.0.0.1.389 > 127.0.0.1.57004: Flags [S.], seq 2305771646, ack 958477600, win 14480, options [mss 1460,sackOK,TS val 152192000 ecr 1287781056,nop,wscale 7], length 0 10:19:50.021030 IP 127.0.0.1.57004 > 127.0.0.1.389: Flags [.], ack 1, win 115, options [nop,nop,TS val 1287781059 ecr 152192000], length 0
10:29:49.499625 IP 127.0.0.1.389 > 127.0.0.1.57004: Flags [F.], seq 2305771647, ack 958477600, win 114, options [nop,nop,TS val 152791480 ecr 1287781059], length 0 10:29:49.501142 IP 127.0.0.1.57004 > 127.0.0.1.389: Flags [F.], seq 1, ack 1, win 115, options [nop,nop,TS val 1288380539 ecr 152791480], length 0 10:29:49.501171 IP 127.0.0.1.389 > 127.0.0.1.57004: Flags [.], ack 2, win 114, options [nop,nop,TS val 152791481 ecr 1288380539], length 0
Is this a duplicate of Ticket #191, which was fixed in 389-ds-base-1.2.11?
As mentioned in comment#1 above, keepalive support was added in 389-ds-base-1.2.11. Closing this as a duplicate of ticket #191.
Metadata Update from @nkinder: - Issue set to the milestone: N/A
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/599
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Duplicate)