jhy/jsoup — pull request #186 by miketung (2012-04-20 01:37:49+00:00)
Title: HttpURLConnection.disconnect()

I was hitting java error "too many files open" in my multi-threaded crawler that uses Jsoup and on inspecting with lsof found that many of the connections where in TCP CLOSE_WAIT state. Closing the HttpURLConnection by calling disconnect() fixed this.