Changeset 4859 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-01-23T15:23:29+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r4854 r4859 568 568 activeConnection = (HttpURLConnection)url.openConnection(); 569 569 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 } 571 573 activeConnection.setRequestMethod(requestMethod); 572 574 if (doAuthenticate) {
Note:
See TracChangeset
for help on using the changeset viewer.