Ignore:
Timestamp:
2014-12-19T18:17:20+01:00 (10 years ago)
Author:
donvip
Message:

[josm_czechaddress] increase read timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/parser/DatabaseParser.java

    r30864 r30865  
    5252
    5353        if (!(new File(getDatabasePath())).exists()) {
    54             System.err.println("CzechAddress: Soubor s databází českých adres na disku nenalazen. Pokusím se jej stáhnout.");
     54            Main.info("CzechAddress: Soubor s databází českých adres na disku nenalazen. Pokusím se jej stáhnout.");
    5555            downloadDatabase();
    5656        }
     
    9898            HttpURLConnection con = (HttpURLConnection)url.openConnection();
    9999
    100             //Set timeout for 10 seconds.
    101             con.setReadTimeout(10000);
     100            //Set timeout for 30 seconds.
     101            con.setReadTimeout(30000);
    102102            con.connect();
    103103
    104             System.err.println("CzechAddress: Stahuji: " + url.toString());
    105             System.err.println("CzechAddress: Server vrátil: " + con.getResponseMessage());
     104            Main.info("CzechAddress: Stahuji: " + url.toString());
     105            Main.info("CzechAddress: Server vrátil: " + con.getResponseMessage());
    106106
    107107            // Check the status error code from server
     
    116116                    bos.write(buffer, 0, count);
    117117                    total += count;
    118                     Main.error("CzechAddress: MVČR database: " + String.valueOf(total/1024) + " kb downloaded.");
     118                    Main.info("CzechAddress: MVČR database: " + String.valueOf(total/1024) + " kb downloaded.");
    119119                }
    120120            }
Note: See TracChangeset for help on using the changeset viewer.