Permalink
Browse files

http.c: in case when connection unsuccessful, cancel request

Change-Id: Ifcf168cc7bd8496a99407ca1d9f5357e36553d7e
Reviewed-on: http://review.couchbase.org/23528
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  • Loading branch information...
1 parent db5845f commit 7baeb69d236ecd883a8e66258031d71bf0d210c9 @funny-falcon funny-falcon committed with avsej Dec 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/couchbase_ext/http.c
View
@@ -304,7 +304,7 @@ cb_http_request_perform(VALUE self)
exc = cb_check_error(err, "failed to schedule document request",
STR_NEW(req->cmd.v.v0.path, req->cmd.v.v0.npath));
if (exc != Qnil) {
- cb_context_free(ctx);
+ lcb_cancel_http_request(bucket->handle, req->request);
rb_exc_raise(exc);
}
req->running = 1;

0 comments on commit 7baeb69

Please sign in to comment.