According to this answer, the method HttpURLConnection.setReadTimeout()
allows you to set the max amount of time to wait for server to START reading data from input stream - as stated by Oracle:
A SocketTimeoutException can be thrown when reading from the returned input stream if the read timeout expires before data is available for read.
It does not allow you to set timeout to force server to FINISH reading data within a specific amount of time
My question is:
Is there a way to set a timeout to force server to finish reading data within a specified amount of time or is this at all not possible?
Thanks