File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
opengrok-indexer/src/main/java/org/opengrok/indexer/index Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -150,8 +150,6 @@ public final class Indexer {
150
150
private static final String [] LUCENE_LOCKS = {ON , OFF , "simple" , "native" };
151
151
private static final String OPENGROK_JAR = "opengrok.jar" ;
152
152
153
- private static final int WEBAPP_CONNECT_TIMEOUT = 3000 ; // in milliseconds
154
-
155
153
public static Indexer getInstance () {
156
154
return indexer ;
157
155
}
@@ -174,7 +172,7 @@ public static void main(String[] argv) {
174
172
try {
175
173
argv = parseOptions (argv );
176
174
177
- if (webappURI != null && !HostUtil .isReachable (webappURI , WEBAPP_CONNECT_TIMEOUT ,
175
+ if (webappURI != null && !HostUtil .isReachable (webappURI , cfg . getConnectTimeout () ,
178
176
cfg .getIndexerAuthenticationToken ())) {
179
177
System .err .println (webappURI + " is not reachable and the -U option was specified, exiting." );
180
178
System .exit (1 );
You can’t perform that action at this time.
0 commit comments