ورود

View Full Version : Android: long first request (WiFi without Internet)



hesam_hma
چهارشنبه 17 آبان 1396, 14:44 عصر
I am using the AsyncHttpClient from loopj.com/android-async-http (http://loopj.com/android-async-http/). The first response in local WiFi (without Internet) is always going to take longer (about 15 sec) than a local WiFi with Internet. I am using two different instance of this class and this problem occurs twice. Example URL:

http://192.168.0.18/test/rest/v1
After first executed request everything works fine, and the time response is <1 sec.
I think that system/lib tries connect with DNS?
I am testing on Samsung S5, android 6.