{"action":"opened","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/2370","repository_url":"https://api.github.com/repos/square/okhttp","labels_url":"https://api.github.com/repos/square/okhttp/issues/2370/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/2370/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/2370/events","html_url":"https://github.com/square/okhttp/issues/2370","id":136258763,"number":2370,"title":"Timeout Issue in emulator with API Level 16","user":{"login":"elrufoelrufo","id":14137306,"avatar_url":"https://avatars.githubusercontent.com/u/14137306?v=3","gravatar_id":"","url":"https://api.github.com/users/elrufoelrufo","html_url":"https://github.com/elrufoelrufo","followers_url":"https://api.github.com/users/elrufoelrufo/followers","following_url":"https://api.github.com/users/elrufoelrufo/following{/other_user}","gists_url":"https://api.github.com/users/elrufoelrufo/gists{/gist_id}","starred_url":"https://api.github.com/users/elrufoelrufo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elrufoelrufo/subscriptions","organizations_url":"https://api.github.com/users/elrufoelrufo/orgs","repos_url":"https://api.github.com/users/elrufoelrufo/repos","events_url":"https://api.github.com/users/elrufoelrufo/events{/privacy}","received_events_url":"https://api.github.com/users/elrufoelrufo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T02:45:55Z","updated_at":"2016-02-25T02:45:55Z","closed_at":null,"body":"Hello,\r\n\r\nAs you can see in the code below. The timeout sets is not working properly in emulator with api level 16. Find below the code. And Log cat where you can see the execution time and connectTimeoutMillis and readTimeoutMillis. Can you please help me?\r\n\r\nI'm using `compile 'com.squareup.okhttp3:okhttp:3.1.2'`\r\n\r\n\r\n`        final OkHttpClient client = new OkHttpClient.Builder()\r\n                    .connectTimeout(2000, TimeUnit.MILLISECONDS)\r\n                    .readTimeout(4000, TimeUnit.MILLISECONDS)\r\n                    .build();\r\n\r\n            Request request = new Request.Builder()\r\n                    .url(url_all_emisoras)\r\n                    .get()\r\n                    .build();\r\n            //Añadimos la autenticación\r\n            request = addBasicAuthHeaders(request);\r\n\r\n\r\n            Response response=null ;\r\n            try {\r\n                Log.d(LOG_TAG, \"MS connect \" + client.connectTimeoutMillis() + \" Ms Read \" + client.readTimeoutMillis());\r\n                response = client.newCall(request).execute();\r\n            } catch (IOException e) {\r\n                Log.w(LOG_TAG, \"IOException try call : \" + e.getMessage());\r\n                return false;\r\n            }`\r\n\r\nLOG : \r\n02-25 **03:31:45.498** 5733-5803/com.radiofmapp.radioargentina D/SplashActivity: MS connect 2000 Ms Read 4000\r\n02-25 **03:32:26.429** 5733-5803/com.radiofmapp.radioargentina W/SplashActivity: IOException try call : Unable to resolve host \"api.radiofmapp.com\": No address associated with hostname\r\n\r\nThanks. Regards. \r\n\r\n"}}