Increased read timeout in order to avoid timeouts on long fixing periods (ie; 2020-01-01) on the IRS demo.

This commit is contained in:
Clinton Alexander 2016-06-14 11:28:28 +01:00 committed by Clinton Alexander
parent 6381b5e6a1
commit 3651bd54aa

View File

@ -9,7 +9,7 @@ import java.util.concurrent.TimeUnit
*/
private val client = OkHttpClient.Builder()
.connectTimeout(5, TimeUnit.SECONDS)
.readTimeout(15, TimeUnit.SECONDS).build();
.readTimeout(60, TimeUnit.SECONDS).build();
fun putJson(url: URL, data: String) : Boolean {
val body = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), data)