Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 7baeb69d236ecd883a8e66258031d71bf0d210c9 1 parent db5845f
@funny-falcon funny-falcon authored avsej committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/couchbase_ext/http.c
View
2  ext/couchbase_ext/http.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.