According to the HTTP spec defined in RFC 2616, "HTTP/1.1 applications that do not support persistent connections should include the "close" connection option in every message."
J2SE's HTTP client has a http.keepAlive property for applications to disable HTTP keep-alive in HTTP/1.1. But it doesn't send the "close" connection option header in HTTP requests. The problem with the current situation is that with http.keepAlive set to false, even though HTTP client closed the connection after each HTTP response, the server side is not notified of this fact, thus it may still keep the connection open. this will at least affect performance, and may impact the correct behaviour of the server.
###@###.### 11/2/04 02:05 GMT
J2SE's HTTP client has a http.keepAlive property for applications to disable HTTP keep-alive in HTTP/1.1. But it doesn't send the "close" connection option header in HTTP requests. The problem with the current situation is that with http.keepAlive set to false, even though HTTP client closed the connection after each HTTP response, the server side is not notified of this fact, thus it may still keep the connection open. this will at least affect performance, and may impact the correct behaviour of the server.
###@###.### 11/2/04 02:05 GMT