Fix build without FEATURE_CONNECTION_KEEP_ALIVE