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

Re: slapd's sockets in CLOSE_WAIT

At 11:15 AM 1/21/00 +0100, Giuseppe Lobiondo wrote:
>I noticed that each user process opens a socket to the server and the
>LDAP server has a lot of open sockets in CLOSE_WAIT state.

The server is awaiting the TCP fin from the client...
What's the state of the other side of the TCP stream?

>I'm not sure but I think this is for the clients to reuse the same socket
>later instead of creating a new one. (in slapd's daemon.c I've found
>that the server sets the flag SO_REUSEADDR on sockets)

Yes, but it doesn't relate to your problem.  See setsockopt(3).

>But since the open sockets are local it is possible for local processes
>use Unix Domain sockets? (if yes how?)

Not in OpenLDAP 1.x.