Skip to content

Timeout Setting Ignored in Whois Client #37

Open
@whydee86

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

  1. Import the Whois client.
  2. Set the timeout using SetTimeout() method.
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions