Changeset 4859 in josm


Ignore:
Timestamp:
2012-01-23T15:23:29+01:00 (8 years ago)
Author:
bastiK
Message:

no read timeout for normal API connections (see #6823, see #7305)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r4854 r4859  
    568568                activeConnection = (HttpURLConnection)url.openConnection();
    569569                activeConnection.setConnectTimeout(fastFail ? 1000 : Main.pref.getInteger("socket.timeout.connect",15)*1000);
    570                 activeConnection.setReadTimeout(fastFail ? 1000 : Main.pref.getInteger("socket.timeout.read",15)*1000);
     570                if (fastFail) {
     571                    activeConnection.setReadTimeout(1000);
     572                }
    571573                activeConnection.setRequestMethod(requestMethod);
    572574                if (doAuthenticate) {
Note: See TracChangeset for help on using the changeset viewer.