Improved KeepAlive for Linux