convertLongTimeoutToIntWithInfiniteAsZero

fun convertLongTimeoutToIntWithInfiniteAsZero(timeout: Long): Int

Convert 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.