Skip to content

Ping.exe timeout is not 5000 ms #45888

Closed
Closed

Description

Ping class mentions default Ping.exe timeout but it is not the same as in the code:

private const int DefaultTimeout = 5000; // 5 seconds: same as ping.exe on Windows.

private const int DefaultTimeout = 5000; // 5 seconds: same as ping.exe on Windows.

Ping.exe documentation
Specifies the amount of time, in milliseconds, to wait for the echo Reply message corresponding to a given echo Request message. If the echo Reply message is not received within the time-out, the "Request timed out" error message is displayed. The default time-out is 4000 (4 seconds).

https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/ping

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions