On Fri, 2014-05-02 at 16:23 +0000, Boxer, Aaron wrote: > Hello List, > > What is the best way of cancelling an httpclient-asynch put ? > > Currently, I am issuing a cancel(true) on the Future I receive back from the > put call. > > But, if I am sending large files, then requests that are in the middle of > sending are not cancelled. > I would like to stop all network activity as soon as possible. > > Is there a way of forcing the client to abort these connections ? >
Simply throw an exception either from request producer or response consumer. That will immediately terminate the ongoing HTTP message exchange and shut down the underlying connection. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org For additional commands, e-mail: httpclient-users-h...@hc.apache.org