- Jun 6, 2020
- 11,559
- 4,422
We would like some clarification on the use of relative timeouts used in OkHttp.
The client has the following 4 settable timeouts:
a. connectTimeout (default 10 seconds)
b. writeTimeout (default 10 seconds)
c. readTimeout (default 10 seconds)
d. callTimeout
From the B4a documentation, set timeouts only on the http request object.
The Okhttp library B4a wrapper sets the following timeouts
connectTimeout, writeTimeout, readTimeout defaults to 30 seconds.
We are creating an Android app, which must send data in POST to REST web services and the size of the data to be sent in a single request can be considerable, being on it can even exceed 2MB for each request.
We are using the latest version of the B4a library "okhttp-4.9.0.jar", and reading the http client configuration parameters it results in a 30 second timeout, but the client raises the timeout after 10 seconds.
From this message...
برای دیدن لینک ها باید ثبت نام کنید
The client has the following 4 settable timeouts:
a. connectTimeout (default 10 seconds)
b. writeTimeout (default 10 seconds)
c. readTimeout (default 10 seconds)
d. callTimeout
From the B4a documentation, set timeouts only on the http request object.
The Okhttp library B4a wrapper sets the following timeouts
connectTimeout, writeTimeout, readTimeout defaults to 30 seconds.
We are creating an Android app, which must send data in POST to REST web services and the size of the data to be sent in a single request can be considerable, being on it can even exceed 2MB for each request.
We are using the latest version of the B4a library "okhttp-4.9.0.jar", and reading the http client configuration parameters it results in a 30 second timeout, but the client raises the timeout after 10 seconds.
From this message...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید