Open
Description
Issue Description
The Whois client doesn't seem to respect the timeout settings when making queries. Despite setting the timeout via SetTimeout()
, the client operation doesn't timeout as expected.
Steps to Reproduce
- Import the Whois client.
- Set the timeout using
SetTimeout()
method. - Make a Whois query.
client := whois.NewClient()
client.SetDialer(proxy.FromEnvironment())
client.SetTimeout(5 * time.Second)
output, err := client.Whois("example.com", *server)
Expected Behavior
The query should timeout after 5 seconds if the server does not respond.
Actual Behavior
The operation does not timeout even after 5 seconds.
Additional Information
- Go version: go1.20.5
- Operating System: Ubuntu 22.04.3 LTS
Metadata
Assignees
Labels
No labels