diff --git a/src/org/openstreetmap/josm/io/OsmApi.java b/src/org/openstreetmap/josm/io/OsmApi.java
index a1766dc..209b55b 100644
a
|
b
|
public class OsmApi extends OsmConnection {
|
566 | 566 | URL url = new URL(new URL(getBaseUrl()), urlSuffix); |
567 | 567 | System.out.print(requestMethod + " " + url + "... "); |
568 | 568 | activeConnection = (HttpURLConnection)url.openConnection(); |
| 569 | // fix #5369, see http://www.tikalk.com/java/forums/httpurlconnection-disable-keep-alive |
| 570 | activeConnection.setRequestProperty("Connection", "close"); |
569 | 571 | activeConnection.setConnectTimeout(fastFail ? 1000 : Main.pref.getInteger("socket.timeout.connect",15)*1000); |
570 | 572 | if (fastFail) { |
571 | 573 | activeConnection.setReadTimeout(1000); |