Index: camel/camel-http-stream.c
===================================================================
--- camel/camel-http-stream.c	(revision 10191)
+++ camel/camel-http-stream.c	(working copy)
@@ -425,14 +425,23 @@ stream_read (CamelStream *stream, char *
 		if (http_connect (http, http->proxy ? http->proxy : http->url) == NULL)
 			return -1;
 		
-		if (http_method_invoke (http) == -1)
+		if (http_method_invoke (http) == -1) {
+			printf ("%s: http_method_invoke failed\n", __FUNCTION__);
+			http_disconnect(http);
 			return -1;
+		}
 		
-		if (http_get_statuscode (http) == -1)
+		if (http_get_statuscode (http) == -1) {
+			printf ("%s: http_get_statuscode failed\n", __FUNCTION__);
+			http_disconnect(http);
 			return -1;
+		}
 		
-		if (http_get_headers (http) == -1)
+		if (http_get_headers (http) == -1) {
+			printf ("%s: http_get_headers failed\n", __FUNCTION__);
+			http_disconnect(http);
 			return -1;
+		}
 		
 		switch (http->statuscode) {
 		case 200:
