B4X FEED OKHttp Timeout (connectTimeout - writeTimeout - readTimeout - callTimeout)

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: OKHttp Timeout (connectTimeout - writeTimeout - readTimeout - callTimeout) است. این موضوع تا کنون 65 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع OKHttp Timeout (connectTimeout - writeTimeout - readTimeout - callTimeout)
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
65
پسندها
0
آخرین ارسال توسط PracticalSoft
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...



 

عقب
بالا