Ignore:
Timestamp:
2012-03-14T23:30:40+01:00 (12 years ago)
Author:
simon04
Message:

hopefully fix #4216 - API calls blocking, cancel not working, JOSM hangs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r4859 r5084  
    567567                System.out.print(requestMethod + " " + url + "... ");
    568568                activeConnection = (HttpURLConnection)url.openConnection();
     569                // fix #5369, see http://www.tikalk.com/java/forums/httpurlconnection-disable-keep-alive
     570                activeConnection.setRequestProperty("Connection", "close");
    569571                activeConnection.setConnectTimeout(fastFail ? 1000 : Main.pref.getInteger("socket.timeout.connect",15)*1000);
    570572                if (fastFail) {
Note: See TracChangeset for help on using the changeset viewer.