This works for me. But in general, shouldn't everyone who is making short request/blocking requests want to call this? E.g. only those making longer running requests would call the original one?
I'd like to potentially head off problems others might be having but not realise it since we make a lot of connections quickly and most don't. Thoughts on the high level analysis of the problem? Is this unlikely to be a significant factor in the issue? Chris On Tue, 05 Apr 2011 16:24:30 -0700 Josh Holtzman <[email protected]> wrote: > I've added this to the comments at MH-7555: > > We can add a new method with a timeout, defaulting to infinite if > none is specified. So the current clients of this API need not > change, but the Capture Agent can make use of the new method if it > helps. > > HttpResponse execute(HttpUriRequest httpUriRequest, long timeout, > TimeUnit timeUnit) > > What do you think? > > Josh > > On Tue, Apr 5, 2011 at 3:23 PM, Christopher Brooks > <[email protected]>wrote: > > > Hey Josh et all, > > > > In dealing with a fairly obscure bug in the capture agent, > > http://opencast.jira.com/browse/MH-7543 , we're eyeballing the > > DefaultHttpClient connection timeout of infinite. If for whatever > > reason this client never returns, it could starve the caller. I'd > > love to get some comments on whether it would be reasonable to add a > > connection timeout and, if so, what a good value would be. > > > > The specific ticket for this hypothesis is at > > http://opencast.jira.com/browse/MH-7555 > > > > Regards, > > > > Chris > > > > -- > > Christopher Brooks, BSc, MSc > > ARIES Laboratory, University of Saskatchewan > > > > Web: http://www.cs.usask.ca/~cab938 > > Phone: 1.306.966.1442 > > Mail: Advanced Research in Intelligent Educational Systems > > Laboratory Department of Computer Science > > University of Saskatchewan > > 176 Thorvaldson Building > > 110 Science Place > > Saskatoon, SK > > S7N 5C9 > > -- Christopher Brooks, BSc, MSc ARIES Laboratory, University of Saskatchewan Web: http://www.cs.usask.ca/~cab938 Phone: 1.306.966.1442 Mail: Advanced Research in Intelligent Educational Systems Laboratory Department of Computer Science University of Saskatchewan 176 Thorvaldson Building 110 Science Place Saskatoon, SK S7N 5C9 _______________________________________________ Matterhorn mailing list [email protected] http://lists.opencastproject.org/mailman/listinfo/matterhorn To unsubscribe please email [email protected] _______________________________________________
