keepalive variable is missing

keepalive is not listed but used in example below the fix