Simplified and improved keepalive management for the local listener.