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"); 

see here


Comments

Popular posts from this blog

iphone - Using nested NSDictionary with Picker -

php - accessing mysql using different server to which db connection data is located -

javascript - Iterate over array and calculate average values of array-parts -