Project

General

Profile

Revision 9e4eb709

ID9e4eb7092b9e7bf69f3394c5130fabeef1ce4246
Parent f13fa7a2
Child 41058237

Added by Patrick Plitzner almost 2 years ago

ref #7844 Extend timeout to 7000ms

View differences:

eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/remoting/source/CdmServerInfo.java
76 76
    public final static int NULL_PORT = -1;
77 77
    public final static String NULL_PORT_STRING = "N/A";
78 78

  
79
    public static final int TIME_OUT = 7000;
80

  
79 81
    private static final String CDM_REMOTE_SERVERS_CONFIG_FILE = "cdm_remote_servers.json";
80 82

  
81 83

  
......
202 204
       // client.getParams();
203 205
        HttpParams params = client.getParams();
204 206

  
205
        HttpConnectionParams.setConnectionTimeout(params, 5000);
206
        HttpConnectionParams.setSoTimeout(params, 5000);
207
        HttpConnectionParams.setConnectionTimeout(params, TIME_OUT);
208
        HttpConnectionParams.setSoTimeout(params, TIME_OUT);
207 209

  
208 210
        HttpGet httpGet = new HttpGet(url);
209 211

  
......
279 281
            return true;
280 282
        }
281 283
        Socket s = new Socket();
282
        s.connect(new InetSocketAddress(server, port), 2000);
284
        s.connect(new InetSocketAddress(server, port), TIME_OUT);
283 285
        s.close();
284 286
        logger.info("[CDM-Server] Available @ " + server + ":" + port );
285 287
        updateInfo();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)