[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4585) slapd-search generates TIME_WAIT connections increasingly



> You should enable some client logging or otherwise
> determine whether the library is attempting to close
> the socket and, if so, whether it called shutdown(2).

I note that in libldap tcp_close() wraps a shutdown(2) and a close(2) (at
least on Linux) whenever SHUT_RDWD is defined (unless closesocket is
defined).  I suggest checking what tcp_close gets defined to (for example,
by compiling libraries/libldap/os-ip.c with gcc -E and inspecting the
resulting code).  If SHUT_RDWR is not defined on Solaris 9 (I have no
means to check right now), shutdown(2) wouldn't be invoked.

p.



Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------