Skip to content

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

Closed
jpsnover wants to merge 2 commits intomasterfrom
jpsnover-patch-1
Closed

Resolve issue #2478 by adding -TimeOut to Test-Connection#2479
jpsnover wants to merge 2 commits intomasterfrom
jpsnover-patch-1

Conversation

@jpsnover
Copy link
Copy Markdown
Contributor

No description provided.

@msftclas
Copy link
Copy Markdown

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;

public Int32 BufferSize { get; set; } = 32;

/// <summary>
/// The following is the definition of the input parameter "BufferSize".
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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?

/// Buffer size sent with the this command. The default value is 32.
/// </summary>
[Parameter]
[ValidateRange((int)1, Int32.MaxValue)]
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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