convertLongTimeoutToIntWithInfiniteAsZero

fun convertLongTimeoutToIntWithInfiniteAsZero(timeout: Long): Int

Converts a long timeout in milliseconds to int value. To do that, we need to consider HttpTimeout.INFINITE_TIMEOUT_MS as zero and convert timeout value to Int.