From 9ed9d936231866d5ae675bd3125be8f96b18d64a Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Tue, 12 Apr 2011 22:51:27 +0000 Subject: [PATCH] Not sure if opening another connection here was intentional; I'm assuming not. At any rate, this was apparently what was causing some users' downloads to stall. Special thanks to Natalie B. for helping me track down the issue. --- src/main/java/com/threerings/getdown/net/HTTPDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/threerings/getdown/net/HTTPDownloader.java b/src/main/java/com/threerings/getdown/net/HTTPDownloader.java index f8884d9..2f387a7 100644 --- a/src/main/java/com/threerings/getdown/net/HTTPDownloader.java +++ b/src/main/java/com/threerings/getdown/net/HTTPDownloader.java @@ -83,7 +83,7 @@ public class HTTPDownloader extends Downloader // make sure we got a satisfactory response code if (conn instanceof HttpURLConnection) { - HttpURLConnection hcon = (HttpURLConnection)rsrc.getRemote().openConnection(); + HttpURLConnection hcon = (HttpURLConnection)conn; if (hcon.getResponseCode() != HttpURLConnection.HTTP_OK) { throw new IOException("Unable to download resource " + rsrc.getRemote() + ": " + hcon.getResponseCode());