Skip to content

[Bug] Client exit on name resolve failure #351

@snowie2000

Description

@snowie2000

Checklist

  • I have updated the version to the latest Release version
  • I've read the documentation in detail and still can't solve it
  • I have searched existing Issues | Discussions, but still can't solve it
  • I've tried a Google search and still can't figure it out

💻 Operating System

Debian12

🐛 Bug Description

The problem lies in this line:

let tcp_addr = domain.to_socket_addrs()?.next().unwrap();

When there is a network issue or DNS issue or something unexpected happens, the client simply exits with an error.

There should be at least a retry logic or even infinite retries with exponentially growing (with an upper limit) intervals to avoid report interruption.

🚦 Expected Behavior

No response

📷 Recurrence Steps

No response

📝 Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions