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

Adding CLI rst command #288

Closed
wants to merge 1 commit into from
Closed

Conversation

peter-ginchev
Copy link

No description provided.

@peter-ginchev
Copy link
Author

@jpittis Could you please review this chunk of code, and submit, if relevant, I just wanted to add RST functionality, which was useful for me.

@miry
Copy link
Contributor

miry commented Sep 17, 2021

Hi @peter-ginchev

Thank you for your contribution. I wonder if you think your changes are still relevant, after so long time?

@peter-ginchev
Copy link
Author

Hi @peter-ginchev

Thank you for your contribution. I wonder if you think your changes are still relevant, after so long time?

Yes, At that moment we wanted to simulate RST and we did it successfully using this patch.
I see that currently, the code has changed, and the conflict is around the fix I need to change the created client fro "net.Listen" to "net.ListenTCP", because RST is thrown on a TCP connection, and the connection previously was just IP.

@miry miry mentioned this pull request Sep 20, 2021
2 tasks
@miry miry added this to the 2.2.0 milestone Sep 20, 2021
@miry miry self-assigned this Oct 8, 2021
@miry
Copy link
Contributor

miry commented Oct 8, 2021

@peter-ginchev I checked the code and find misleading content.
Example the command description: reset a proxy. When I read it, I would assume it means to remove all settings for proxy (e.g disable all toxics). In same time the code drop connections to the proxy.

To remove doubts and expectations, can you update the description with usage case, it would help me to better comment on proposed code.

I am also checking similar proposals:

@peter-ginchev
Copy link
Author

@peter-ginchev I checked the code and find misleading content. Example the command description: reset a proxy. When I read it, I would assume it means to remove all settings for proxy (e.g disable all toxics). In same time the code drop connections to the proxy.

To remove doubts and expectations, can you update the description with usage case, it would help me to better comment on proposed code.

I am also checking similar proposals:

Sorry for not being clear enough.
For me a proxy is a connection, so proxy reset, I've meant connection reset. Specifically, simulate TCP RST on the connection to the Proxy.

@miry
Copy link
Contributor

miry commented Oct 17, 2021

Hi @peter-ginchev

I decided to use #247 as main solution to add Reset peer toxic.
It adds toxic with timeout to create a disturbance.

I released a new version https://github.com/Shopify/toxiproxy/releases/tag/v2.2.0
Let me know if it solves your use case as well.

@miry miry removed this from the 2.2.0 milestone Oct 17, 2021
@peter-ginchev
Copy link
Author

Thanks, I don't have availability to check it right now. I'll close this PR, and will comment if in the future the released code doesn't suit me.

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.

2 participants