Skip to content

Commit 03423c5

Browse files
committed
Add a timeout to ResourceDownloader network connection code.
1 parent a355549 commit 03423c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/io/sf/carte/doc/agent/net/ResourceDownloader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ protected InputStream openStream() throws IOException {
150150
} else {
151151
con = getURL().openConnection();
152152
}
153+
con.setConnectTimeout(60000);
153154
contentType = con.getContentType();
154155
return con.getInputStream();
155156
}

0 commit comments

Comments
 (0)