]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/admin_socket: close socket descriptor in destructor 4541/head
authorJon Bernard <jbernard@tuxion.com>
Fri, 8 May 2015 15:54:06 +0000 (11:54 -0400)
committerJon Bernard <jbernard@tuxion.com>
Fri, 8 May 2015 15:54:06 +0000 (11:54 -0400)
commit88fabb1ee6cd3c7d211ca46919055195e32245db
tree31ee601a14821f0784112da2bd3889e0769179d0
parent92bcf6c5eca67396f720135014756ce998361298
common/admin_socket: close socket descriptor in destructor

Long-running processes that do not reuse a single client connection will
see accumulating file descriptors as a result of not closing the
listening socket.  In this case, eventually the system will reach
file-max and subsequent connections will fail.

Fixes: #11535
Signed-off-by: Jon Bernard <jbernard@tuxion.com>
src/common/admin_socket.cc
src/common/admin_socket.h