Re: timeout for fetching

View: New views
1 Messages — Rating Filter:   Alert me  

Re: timeout for fetching

by Rae Egli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Just wanted to mention that the latest version in CVS has now timeout handling.  You'll have to use HttpClientFeedFetcher instead of HttpURLFeedFetcher if you want to take advantage of it. Thanks to Mark Woodman for the inspiration.

 

Another enhancement is additional support for method parameters via callback.

 

Hope this helps.


----- Original Message ----
From: Cam Bazz <cambazz@...>
To: users@...
Sent: Tuesday, June 10, 2008 2:47:56 AM
Subject: timeout for fetching

Hello,

I am using rome fetcher to do a project.  I need however a way of timing out the fetch operation. Sometimes a server is off or some problem happens, and it gets stuck forever.
fetcher does not seem to have a set timeout method. I am using something like:

            URL feedUrl = new URL(url);
            HttpURLFeedFetcher fetcher = new HttpURLFeedFetcher();

            FetcherEventListenerImpl listener = new FetcherEventListenerImpl();
            fetcher.addFetcherEventListener(listener);
            System.err.println("Retrieving feed " + feedUrl);

            SyndFeed feed;

            feed = fetcher.retrieveFeed(feedUrl);
           


any ideas?

-Best.
LightInTheBox - Buy quality products at wholesale price