Reusing an HTTP connection in Android -
i trying re-use connection in android, , quick google search finds this: http://foo.jasonhudgins.com/2010/03/http-connections-revisited.html
however, tried that, , if use wireshark, can see still getting http fin-ack after each of 3 consecutive calls, furthermore, http calls going different ports.
any ideas on might doing wrong here?
if want use persistent connection server have add keep-alive request urlconnection
object so:
myurlconnection.setrequestproperty("connection", "keep-alive");
Comments
Post a Comment