Persistent HTTP connection Java

Viewed 3566

I know that when using HttpURLConnection Java tries to reuse the same TCP connection for multiple requests to server unless there is a limitation from server side. Indeed, when I see wireshark log, one of the requestHeaders of HTTP header is Connection: keep-alive. But when server returns data I see a TCP [FIN,ACK] packet being sent back to server from my side.

How exactly does this reuse the tcp connection?

1 Answers
Related