{"action":"closed","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/1693","repository_url":"https://api.github.com/repos/square/okhttp","labels_url":"https://api.github.com/repos/square/okhttp/issues/1693/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/1693/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/1693/events","html_url":"https://github.com/square/okhttp/issues/1693","id":86876538,"number":1693,"title":"OkHttp should provide an option to automatically retry connections that return http status 408","user":{"login":"ahanhine","id":12825999,"avatar_url":"https://avatars.githubusercontent.com/u/12825999?v=3","gravatar_id":"","url":"https://api.github.com/users/ahanhine","html_url":"https://github.com/ahanhine","followers_url":"https://api.github.com/users/ahanhine/followers","following_url":"https://api.github.com/users/ahanhine/following{/other_user}","gists_url":"https://api.github.com/users/ahanhine/gists{/gist_id}","starred_url":"https://api.github.com/users/ahanhine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahanhine/subscriptions","organizations_url":"https://api.github.com/users/ahanhine/orgs","repos_url":"https://api.github.com/users/ahanhine/repos","events_url":"https://api.github.com/users/ahanhine/events{/privacy}","received_events_url":"https://api.github.com/users/ahanhine/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/square/okhttp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/square/okhttp/milestones/16","html_url":"https://github.com/square/okhttp/milestones/3.1","labels_url":"https://api.github.com/repos/square/okhttp/milestones/16/labels","id":1460477,"number":16,"title":"3.1","description":"Goal: update the response cache.","creator":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"open_issues":36,"closed_issues":8,"state":"open","created_at":"2015-12-15T00:29:28Z","updated_at":"2016-02-15T14:51:02Z","due_on":"2016-03-27T04:00:00Z","closed_at":null},"comments":12,"created_at":"2015-06-10T07:43:34Z","updated_at":"2016-02-15T14:51:02Z","closed_at":"2016-02-15T14:51:02Z","body":"I am experiencing intermittent http 408 status errors when using OkHttp 2.4.0 or 2.3.0 and Android 5.0 or M Preview. When I downgrade to OkHttp 2.2.0 the problem does not occur.\r\n\r\nHttp specification states that:\r\n408 Request Timeout\r\nThe client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time.\r\n\r\nIf we add following to HttpEngine.followUpRequest()\r\ncase HTTP_CLIENT_TIMEOUT:\r\n  return userRequest.newBuilder().build();\r\nThe problem does not occur any more.\r\n\r\nCould there be an option in OkHttp to allow retry when http status 408 is returned?"}}