{"action":"opened","issue":{"url":"https://api.github.com/repos/rometools/rome/issues/225","repository_url":"https://api.github.com/repos/rometools/rome","labels_url":"https://api.github.com/repos/rometools/rome/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/rometools/rome/issues/225/comments","events_url":"https://api.github.com/repos/rometools/rome/issues/225/events","html_url":"https://github.com/rometools/rome/issues/225","id":132406543,"number":225,"title":"[fetcher] Allow to set timeout for HttpURLFeedFetcher","user":{"login":"mishako","id":202554,"avatar_url":"https://avatars.githubusercontent.com/u/202554?v=3","gravatar_id":"","url":"https://api.github.com/users/mishako","html_url":"https://github.com/mishako","followers_url":"https://api.github.com/users/mishako/followers","following_url":"https://api.github.com/users/mishako/following{/other_user}","gists_url":"https://api.github.com/users/mishako/gists{/gist_id}","starred_url":"https://api.github.com/users/mishako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishako/subscriptions","organizations_url":"https://api.github.com/users/mishako/orgs","repos_url":"https://api.github.com/users/mishako/repos","events_url":"https://api.github.com/users/mishako/events{/privacy}","received_events_url":"https://api.github.com/users/mishako/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rometools/rome/labels/feature","name":"feature","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-09T12:19:55Z","updated_at":"2016-02-09T12:19:55Z","closed_at":null,"body":"<a href=\"https://github.com/PatrickGotthard\"><img src=\"https://avatars.githubusercontent.com/u/2995260?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [PatrickGotthard](https://github.com/PatrickGotthard)**\n_Monday Sep 30, 2013 at 15:37 GMT_\n_Originally opened as https://github.com/rometools/rome-fetcher/issues/3_\n\n----\n\n<pre>=== This issue was migrated from JIRA ===\r\nType: New Feature\r\nPriority: Major\r\nStatus: Open\r\nResolution: Unresolved\r\nReported by: Milan Dvilek\r\nAssigned to: Nick Lothian\r\nCreated: Fri Jun 01 13:03:47 CEST 2012\r\nUpdated: Fri Jun 01 14:22:49 CEST 2012\r\nJIRA Link: <a href=\"https://rometools.jira.com/browse/FETCHER-2\">https://rometools.jira.com/browse/FETCHER-2</a>\r\n=========================================</pre>\r\n<p>Method <tt>com.sun.syndication.fetcher.impl.HttpURLFeedFetcher.retrieveFeed(URL)</tt> uses URLConnection to establish a connection to the feedUrl. Since connection can hang it is necessary to either set timeout to reasonable default values or to make it configurable. Both <tt>java.net.URLConnection.setConnectTimeout(int)</tt> and <tt>info.magnolia.module.exchangesimple.BaseSyndicatorImpl.prepareConnection(Subscriber, String).urlConnection</tt> should be made configurable for feed fetcher to avoid hanging calls.</p>\n"}}