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

feat: Add response option to return "connection reset" #258

Closed
dukeofharen opened this issue Aug 14, 2022 · 1 comment · Fixed by #266
Closed

feat: Add response option to return "connection reset" #258

dukeofharen opened this issue Aug 14, 2022 · 1 comment · Fixed by #266
Labels
enhancement Enhancement of the code, not introducing new features.

Comments

@dukeofharen
Copy link
Owner

dukeofharen commented Aug 14, 2022

Feature Request

Describe the Feature Request

In some situations, it might be nice to simulate a "connection reset" to simulate a network disturbance.

Describe Preferred Solution

Here is an example of how something like this might look like:

- id: connection-reset
  conditions:
    method: GET
    url:
      path:
        equals: /connection-reset
  response:
    abortConnection: true

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)

@dukeofharen dukeofharen added the enhancement Enhancement of the code, not introducing new features. label Aug 14, 2022
@dukeofharen
Copy link
Owner Author

dukeofharen commented Aug 21, 2022

This can be done using .NET: dotnet/aspnetcore#21751. Apparently does not work in IIS, so we have to check that.

@dukeofharen dukeofharen linked a pull request Aug 27, 2022 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant