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

Async http adapter: only consider real requests to be real #931

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

tonywok
Copy link
Contributor

@tonywok tonywok commented Feb 24, 2021

This was causing an issue in VCR, as callbacks were always firing because net connect was enabled. In this case, continuously appending recorded cassettes.

A stubbed request is not a real request, and therefore shouldn’t fire callbacks that are only meant for real requests.

Note this was made in collaboration with the fix identified by @ioquatix in #930

@tonywok tonywok changed the title Async http adapter: only considered real requests to be real Async http adapter: only consider real requests to be real Feb 24, 2021
This was causing an issue in VCR, as callbacks were always firing because net connect was enabled.
In this case, continuously appending recorded cassettes.

A stubbed request is not a real request, and therefore shouldn’t fire callbacks that are only meant for real requests.
@bblimke
Copy link
Owner

bblimke commented Feb 25, 2021

Thank you @tonywok and @ioquatix !

@bblimke
Copy link
Owner

bblimke commented Feb 25, 2021

It's now released as 3.11.3

@tonywok tonywok deleted the ts-async-real-request branch February 25, 2021 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants