This is an example code where the program will block for approximately 30 seconds. This behavior can be counterintuitive in some cases because the Timeout is set but fails to stop the ongoing resolving process. However, when using the Ping command, the ongoing resolution process is terminated based on the specified timeout (-t).
To address this issue, I have added the ResolveTimeout, which handles situations where the resolve time exceeds a certain threshold.
While expanding the Timeout to influence the resolve time might be a potential solution, it could have backward compatibility implications?
Based on this, I have opted to submit the ResolveTimeout version.
This is an example code where the program will block for approximately 30 seconds. This behavior can be counterintuitive in some cases because the Timeout is set but fails to stop the ongoing resolving process. However, when using the Ping command, the ongoing resolution process is terminated based on the specified timeout (-t).
To address this issue, I have added the ResolveTimeout, which handles situations where the resolve time exceeds a certain threshold. While expanding the Timeout to influence the resolve time might be a potential solution, it could have backward compatibility implications? Based on this, I have opted to submit the ResolveTimeout version.