Android - setSoTimeout not working

前端 未结 3 800
一整个雨季
一整个雨季 2021-01-15 18:56

So I\'m running into a not working socket timeout. I followed all instructions given by existing posts, but its still not working (I never get a socket timeout exception). H

3条回答
  •  太阳男子
    2021-01-15 19:04

    See: https://stackoverflow.com/a/20031077/2609238

    The problem might be in the Apache HTTP Client. See HTTPCLIENT-1098. Fixed in 4.1.2.

    The timeout exception tries to reverse DNS the IP, for logging purposes. This takes an additional time until the exception is actually fired.

提交回复
热议问题