Changeset 5324 in josm


Ignore:
Timestamp:
Jul 11, 2012 7:05:52 PM (11 months ago)
Author:
simon04
Message:

fix #7640 - History query will not cancel or timeout

File:
1 edited

Legend:

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

    r5317 r5324  
    6464            try { 
    6565                activeConnection = (HttpURLConnection)url.openConnection(); 
     66                // fix #7640, see http://www.tikalk.com/java/forums/httpurlconnection-disable-keep-alive 
     67                activeConnection.setRequestProperty("Connection", "close"); 
    6668            } catch(Exception e) { 
    6769                throw new OsmTransferException(tr("Failed to open connection to API {0}.", url.toExternalForm()), e); 
Note: See TracChangeset for help on using the changeset viewer.