android httpclient hangs on second request to the server (connection timed out)

前端 未结 7 2133
后悔当初
后悔当初 2020-11-29 06:16

I\'m struggling with the following problem: My App makes sequence of requests to the http server using HttpClient. I use HttpPut for sending data to the server. First reques

7条回答
  •  醉酒成梦
    2020-11-29 06:38

    I have had this same problem. I am consuming all the content.

    What I found is if I do a garbage collection after issuing a request, everything works without having to close and create a new AndroidHttpClient:

    System.gc();

提交回复
热议问题