When does java let go of a connections to a URL? I don\'t see a close() method on either URL or URLConnection so does it free up the connection as soon as the request finish
If you cast to an HttpURLConnection, there is a disconnect() method. If the connection is idle, it will probably disconnect immediately. No guarantees.