Changeset 4854 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-01-22T21:35:37+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r4815 r4854 560 560 private String sendRequest(String requestMethod, String urlSuffix,String requestBody, ProgressMonitor monitor, boolean doAuthenticate, boolean fastFail) throws OsmTransferException { 561 561 StringBuffer responseBody = new StringBuffer(); 562 int retries = getMaxRetries();562 int retries = fastFail ? 0 : getMaxRetries(); 563 563 564 564 while(true) { // the retry loop … … 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 571 activeConnection.setRequestMethod(requestMethod); 571 572 if (doAuthenticate) {
Note:
See TracChangeset
for help on using the changeset viewer.