Fix:android:Increase timeouts for map download
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 1 Sep 2011 20:46:26 +0000 (20:46 +0000)
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 1 Sep 2011 20:46:26 +0000 (20:46 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4744 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/android/src/org/navitproject/navit/NavitMapDownloader.java

index 1e54b12..c0cdd98 100644 (file)
@@ -157,8 +157,8 @@ public class NavitMapDownloader extends Thread
        public static int[]                 OSM_MAP_NAME_ORIG_ID_LIST               = null;\r
 \r
        private Boolean                     stop_me                                 = false;\r
-       private static final int            SOCKET_CONNECT_TIMEOUT                  = 25000;                    // 25 secs.\r
-       private static final int            SOCKET_READ_TIMEOUT                     = 15000;                    // 15 secs.\r
+       private static final int            SOCKET_CONNECT_TIMEOUT                  = 60000;                    // 60 secs.\r
+       private static final int            SOCKET_READ_TIMEOUT                     = 120000;                   // 120 secs.\r
        private static final int            MAP_WRITE_FILE_BUFFER                   = 1024 * 64;\r
        private static final int            MAP_WRITE_MEM_BUFFER                    = 1024 * 64;\r
        private static final int            MAP_READ_FILE_BUFFER                    = 1024 * 64;\r