Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pubsub: allow aborting an active HTTP request + auto-abort when subsc… #1105

Merged
merged 1 commit into from
Feb 4, 2016

Conversation

stephenplusplus
Copy link
Contributor

…ription closed

RE: #1104

This modifies our core request functionality to expose an abort function which cancels an active HTTP request (via request).

@stephenplusplus stephenplusplus added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: pubsub Issues related to the Pub/Sub API. core labels Feb 3, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 3, 2016
return {
abort: function() {
if (activeRequest_) {
activeRequest_.abort();

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

makeAuthenticatedRequest(reqOpts, assert.ifError).abort();
});

it.only('should only abort() once', function(done) {

This comment was marked as spam.

This comment was marked as spam.

callmehiphop added a commit that referenced this pull request Feb 4, 2016
pubsub: allow aborting an active HTTP request + auto-abort when subsc…
@callmehiphop callmehiphop merged commit 2bc840c into googleapis:master Feb 4, 2016
ctavan added a commit to ctavan/google-cloud-node that referenced this pull request Feb 3, 2017
ctavan added a commit to ctavan/google-cloud-node that referenced this pull request Feb 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement. core type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants