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

Add tools for testing connectivity handling #561

Open
1 task done
agronholm opened this issue May 2, 2023 · 0 comments
Open
1 task done

Add tools for testing connectivity handling #561

agronholm opened this issue May 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@agronholm
Copy link
Owner

agronholm commented May 2, 2023

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

I'm thinking of adding some sort of MiddleMan class which works as both listener and connector. Once it receives a connection, it would connect to the final destination (some service being tested, probably). The test code could then arbitrarily disconnect either, or both sides, or make them unresponsive to test how the code would fare in these situations.

Testing TLS connections like this is a tad more complicated, but completely doable.

This would be best paired with #151.

Use case

It would be prudent for implementations of network protocols to be tested around their handling of disconnections, and this is not trivial to accomplish with existing tools.

@agronholm agronholm added the enhancement New feature or request label May 2, 2023
@agronholm agronholm changed the title Add tools for testing for connectivity issues Add tools for testing connectivity handling May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant