Changeset 5587 in josm for trunk/src/org/openstreetmap/josm/io/OsmApi.java
- Timestamp:
- 2012-11-18T00:44:10+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmApi.java
r5422 r5587 36 36 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 37 37 import org.openstreetmap.josm.tools.CheckParameterUtil; 38 import org.openstreetmap.josm.tools.Utils; 38 39 import org.xml.sax.Attributes; 39 40 import org.xml.sax.InputSource; … … 585 586 URL url = new URL(new URL(getBaseUrl()), urlSuffix); 586 587 System.out.print(requestMethod + " " + url + "... "); 587 activeConnection = (HttpURLConnection)url.openConnection();588 588 // fix #5369, see http://www.tikalk.com/java/forums/httpurlconnection-disable-keep-alive 589 activeConnection .setRequestProperty("Connection", "close");589 activeConnection = Utils.openHttpConnection(url, false); 590 590 activeConnection.setConnectTimeout(fastFail ? 1000 : Main.pref.getInteger("socket.timeout.connect",15)*1000); 591 591 if (fastFail) {
Note:
See TracChangeset
for help on using the changeset viewer.