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

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



At 10:11 AM 6/12/2006, ando@sys-net.it wrote:

>> 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).

Yes.  My first question could be worded "is tcp_close being
called for these sockets?"

>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.

My second question could be worded "is tcp_close calling
shutdown(2)?".  (Your method for answering this question is
suitable.)

A third question, which I should have asked before is,
what is the TCP state of these steams at the peer?

Kurt