this fixes an issue where connections are orphaned with unread data.
These are eventually cleaned up with a full garbage collection, however the full GC may not happen quickly
enough which results in a java.net.SocketException: Too many open files. This is a result of not draining the
error stream and/or not getting the response code.
see http://stackoverflow.com/questions/1440957/httpurlconnection-getresponsecode-returns-1-on-second-invocation
see http://stackoverflow.com/questions/1936872/how-to-keep-multiple-java-httpconnections-open-to-same-destination
bugfix patch for HttpURLConnection leak