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 conditional -k switch to CPS client command line #426

Closed
wants to merge 1 commit into from

Conversation

Lekshmi-Ra
Copy link
Contributor

This switch is required to insert 2 seconds delay between send/receive when the data transfer mode is set to 2, which is continuous send/receive.

@@ -41,7 +41,7 @@ protected override string GetCommandLineArguments()
string clientIPAddress = this.GetLayoutClientInstances(ClientRole.Client).First().IPAddress;
string serverIPAddress = this.GetLayoutClientInstances(ClientRole.Server).First().IPAddress;

return $"-c -r {this.Connections} " +
return $"-c -r {this.Connections} " + $"{((this.DataTransferMode == 2) ? "-k " : string.Empty)}" +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will want to add unit test for this case

Copy link
Contributor

@brdeyo brdeyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the VERSION file at the root of the repo. This ensures that a new NuGet package is published to Nuget.org. This is required for us to bring these changes into the internal builds/releases of VC.

This switch is required to insert 2 seconds delay between send/receive when the data transfer mode is set to 2, which is continuous send/receive.
@Lekshmi-Ra Lekshmi-Ra force-pushed the users/lekshmi-ra/cps branch from aacfa5f to e4a8369 Compare January 22, 2025 21:02
@Lekshmi-Ra Lekshmi-Ra marked this pull request as draft January 22, 2025 23:30
@Lekshmi-Ra
Copy link
Contributor Author

Abandoning this PR as we're working on another approach which adds more flexibility to the execution of the tool.

@Lekshmi-Ra Lekshmi-Ra closed this Jan 22, 2025
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.

3 participants