The W3C code uses automatic connection management and keep-alive connections to optimize performance. It appears there is currently no way to explicitly close the TCP connection, we will see if we can fix that in a future version. Regards, Andreas Sterbenz mailto:Andreas.Sterbenz@iaik.at ----- Original Message ----- From: "Ronen Lazar" <RonenL@gilian.com> To: <email@example.com> Sent: Tuesday, January 02, 2001 9:03 AM Subject: [iaik-ssl] Closing connection with HttpsURLConnection > Hi all, > > How can I control the connection of HttpsURLConnection (i.e. close it > whenever I want) to a certain server? > If I use the HttpsURLConnection.disconnect(), it doesn't really close the > socket which lies underneath. > Also close()ing the OutputStream / InputStream won't do. > It seems that the class manages the connections by itself without my ability > to effect it. > Even in HttpsDemo, the connection really closes only when the application > terminates, and not even after the method which created this connection > ends. > > Any idea? > > TIA, > Ronen.