Skip to content

Commit 70b00cb

Browse files
committed
setting timeout when talking to Hmmer server
1 parent 81c4395 commit 70b00cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biojava-ws/src/main/java/org/biojava/nbio/ws/hmmer/RemoteHmmerScan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public SortedSet<HmmerResult> scan(ProteinSequence sequence, URL serviceLocation
112112
HttpURLConnection connection2 = (HttpURLConnection) respUrl.openConnection();
113113
connection2.setRequestMethod("GET");
114114
connection2.setRequestProperty("Accept", "application/json");
115-
115+
connection2.setConnectTimeout(60000); // 1 minute
116116

117117
//Get the response
118118
BufferedReader in = new BufferedReader(

0 commit comments

Comments
 (0)