10000 Resolve issue #2478 by adding -TimeOut to Test-Connection by jpsnover · Pull Request #2479 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Resolve issue #2478 by adding -TimeOut to Test-Connection #2479

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

Closed
wants to merge 2 commits into from

Conversation

jpsnover
Copy link
Contributor

No description provided.

@msftclas
Copy link

Hi @jpsnover, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.

TTYL, MSBOT;

@@ -128,6 +128,14 @@ public class TestConnectionCommand : PSCmdlet
public Int32 BufferSize { get; set; } = 32;

/// <summary>
/// The following is the definition of the input parameter "BufferSize".
/// Buffer size sent with the this command. The default value is 32.
Copy link
Member

Choose a reason for hiding this comment

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

This comment must be updated. It was copied and pasted without modification.

@mirichmo
Copy link
Member

@jpsnover Please include test(s) for this change in ...\test\powershell\Modules\Microsoft.PowerShell.Management

@adityapatwardhan and @JamesWTruher Please review

@daxian-dbw
Copy link
Member

@jpsnover PRs should be sent out from a fork instead of from a branch directly pushed to powershell/powershell. That is to make sure powershell/powershell has a minimal number of branches. Could you please close this PR and send it from a fork after addressing the CR comments?

/// </summary>
[Parameter]
[ValidateRange((int)1, Int32.MaxValue)]
public Int32 TimeOut { get; set; } = 1000;
Copy link
Collaborator

Choose a reason for hiding this comment

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

1000 [](start = 45, length = 4)

I'm a little worried about this - how did you land on this value? Could the default value be Int32.MaxValue to maintain current behavior? Anyone using this new parameter would likely provide a much smaller number in any case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

MAXValue is clearly too large but that is what the API takes and I'm not sure what a reasonable MAX size would be so I juse use the MAXVALUE

@jpsnover
Copy link
Contributor Author

This was superseded by PR #2492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on Author The PR was reviewed and requires changes or comments from the author before being accept
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
0