{"action":"opened","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1116","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1116/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1116/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1116/events","html_url":"https://github.com/dropwizard/dropwizard/issues/1116","id":89086613,"number":1116,"title":"JerseyClientConfiguration timeout not properly set from yaml","user":{"login":"Sushisource","id":517683,"avatar_url":"https://avatars.githubusercontent.com/u/517683?v=3","gravatar_id":"","url":"https://api.github.com/users/Sushisource","html_url":"https://github.com/Sushisource","followers_url":"https://api.github.com/users/Sushisource/followers","following_url":"https://api.github.com/users/Sushisource/following{/other_user}","gists_url":"https://api.github.com/users/Sushisource/gists{/gist_id}","starred_url":"https://api.github.com/users/Sushisource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sushisource/subscriptions","organizations_url":"https://api.github.com/users/Sushisource/orgs","repos_url":"https://api.github.com/users/Sushisource/repos","events_url":"https://api.github.com/users/Sushisource/events{/privacy}","received_events_url":"https://api.github.com/users/Sushisource/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-17T18:11:11Z","updated_at":"2015-06-17T18:11:11Z","closed_at":null,"body":"Hi all,\r\n\r\nAFAICT, dropwizard isn't actually setting the timeout values for jersey clients when they're specified in a config file. Here's my quick example (CatConfiguration is cut down for brevity):\r\n\r\n```java\r\npublic class CatConfiguration extends Configuration {\r\n  @Valid\r\n  @NotNull\r\n  @JsonProperty(\"jerseyClient\")\r\n  private JerseyClientConfiguration jerseyClientConfiguration;\r\n\r\n  public JerseyClientConfiguration getJerseyClientConfiguration() {\r\n    return jerseyClientConfiguration;\r\n  }\r\n\r\n  public void setJerseyClientConfiguration(JerseyClientConfiguration jcc) {\r\n    this.jerseyClientConfiguration = jcc;\r\n  }\r\n}\r\n```\r\n\r\nConfig file contains:\r\n```yaml\r\njerseyClient:\r\n  timeout: 3s\r\n```\r\n\r\nAnd when I build it (I've tried this with and without the \"using\" method)\r\n```java\r\nfinal Client jerseyClient = new JerseyClientBuilder(environment)\r\n        .using(catCfg.getJerseyClientConfiguration()).build(getName());\r\nSystem.out.println(\"Timeout:\");\r\nSystem.out.println(jerseyClient.getConfiguration().getProperty(ClientProperties.READ_TIMEOUT));\r\nSystem.out.println(catCfg.getJerseyClientConfiguration().getTimeout());\r\n```\r\nThis prints\r\n```\r\nTimeout:\r\nnull\r\n3 seconds\r\n```\r\n\r\nI fairly sure I haven't messed this up - is the timeout simply failing to be set? Right now I'm just manually setting the timeout as a temporary workaround. Let me know if I've done something wrong, otherwise hopefully this is an easy fix. Thanks!\r\n"}}