HttpClient execute keeps giving ConnectTimeoutException

前端 未结 4 1797
感情败类
感情败类 2020-12-06 13:44

I have this very big bug in my application that I really can\'t seem to solve. Whenever I make a rest call via the following code:

  HttpGet request = new H         


        
4条回答
  •  忘掉有多难
    2020-12-06 14:26

    I having the same issue.

    Try using direct IP for your requests. I noticed that Android DNS lookups behave quite weird sometimes. I searched and found this : http://mailinglists.945824.n3.nabble.com/Android-and-reverse-DNS-lookup-issues-td3011461.html .

    Dunno if it's relevant or not, i'm still trying to find a workaround. Maybe someone here can take a look and figure it out.

提交回复
热议问题