Android (Java) HttpURLConnection silent retry on 'read' timeout

前端 未结 4 891
春和景丽
春和景丽 2020-12-23 23:39

So I\'m using Google Volley for HTTP request, which basically uses Java\'s HttpURLConnection.

According to my tests, the

4条回答
  •  醉酒成梦
    2020-12-23 23:56

    As it says in one of the links you quoted, you need to set sun.net.http.retryPost to false.

    Or, don't use fixed-length or chunked transfer mode: see this bug report.

提交回复
热议问题