### Eclipse Workspace Patch 1.0
#P sesame-2.2.3
Index: core/http/client/src/main/java/org/openrdf/http/client/HTTPClient.java
===================================================================
--- core/http/client/src/main/java/org/openrdf/http/client/HTTPClient.java	(revision 8498)
+++ core/http/client/src/main/java/org/openrdf/http/client/HTTPClient.java	(working copy)
@@ -1191,15 +1191,20 @@
 
 	protected final void releaseConnection(HttpMethod method) {
 		try {
-			// Read the entire response body to enable the reuse of the connection
-			InputStream responseStream = method.getResponseBodyAsStream();
-			if (responseStream != null) {
-				while (responseStream.read() >= 0) {
-					// do nothing
+			if(Thread.currentThread().isInterrupted()){
+				method.abort();
+			}
+			else{
+				// Read the entire response body to enable the reuse of the connection
+				InputStream responseStream = method.getResponseBodyAsStream();
+				if (responseStream != null) {
+					while (responseStream.read() >= 0) {
+						// do nothing
+					}
 				}
+	
+				method.releaseConnection();
 			}
-
-			method.releaseConnection();
 		}
 		catch (IOException e) {
 			logger.warn("I/O error upon releasing connection", e);
