Changeset 9318 in josm
- Timestamp:
- 2016-01-05T10:10:29+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java
r9308 r9318 111 111 // see https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_QL#timeout 112 112 final Matcher timeoutMatcher = Pattern.compile("\\[timeout:(\\d+)\\]").matcher(overpassQuery); 113 final int timeout; 113 114 if (timeoutMatcher.find()) { 114 final inttimeout = 1000 * Integer.parseInt(timeoutMatcher.group(1));115 request.setConnectTimeout(timeout);116 request.setReadTimeout(timeout);115 timeout = 1000 * Integer.parseInt(timeoutMatcher.group(1)); 116 } else { 117 timeout = 180_000; 117 118 } 119 request.setConnectTimeout(timeout); 120 request.setReadTimeout(timeout); 118 121 } 119 122
Note:
See TracChangeset
for help on using the changeset viewer.