Changeset 8563 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2015-07-04T17:40:16+02:00 (9 years ago)
Author:
Don-vip
Message:

fix #7813 - proper timeouts when connecting to OSM server (patch by anirud)

File:
1 edited

Legend:

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

    r8510 r8563  
    135135                throw new OsmTransferException(tr("Failed to open connection to API {0}.", url.toExternalForm()), e);
    136136            }
     137            Utils.setupURLConnection(activeConnection);
    137138            if (cancel) {
    138139                activeConnection.disconnect();
     
    148149                activeConnection.setRequestProperty("Accept-Encoding", "gzip, deflate");
    149150            }
    150 
    151             activeConnection.setConnectTimeout(Main.pref.getInteger("socket.timeout.connect", 15)*1000);
    152151
    153152            try {
Note: See TracChangeset for help on using the changeset viewer.