On Thu, 2012-11-22 at 15:02 +0000, James Shaw wrote: > I've been looking at making my HttpClient interruptible. To do this, I'm > creating my own SocketFactory and registering it in a SchemeRegistry. But > I'm now having an issue where the request is being retried three times, > each time catching ClosedByInterruptException. > > I see that InterruptedIOException is already caught by > DefaultHttpRequestRetryHandler. Should ClosedByInterruptException be > added, too?
Hmm. As far as I understand ClosedByInterruptException can be thrown only when using NIO channels, which HttpClient does not make use of per default. Anyway, obviously in your particular case you should probably be using a custom HttpRequestRetryHandler as well. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org