Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to the UDP tracker #16

Closed
josecelano opened this issue Nov 13, 2024 · 2 comments
Closed

Can't connect to the UDP tracker #16

josecelano opened this issue Nov 13, 2024 · 2 comments

Comments

@josecelano
Copy link
Member

Relates to: #14

I'm trying to make an announce request to the UDO demo tracker, and I get a timeout error:

cargo run --bin udp_tracker_client announce udp://tracker.torrust-demo.com:6969 9c38422213e30bff212b30c360d26f9a02136422

Error:

Error: Failed to receive a connect response, with error: Timeout while waiting for the socket to become readable.

It could be related to #14

@josecelano
Copy link
Member Author

I'm going to try increasing the client timeout.

@josecelano
Copy link
Member Author

I can sometimes connect:

$ cargo run --bin udp_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.08s
     Running `/home/josecelano/Documents/git/committer/me/github/torrust/torrust-tracker/target/debug/udp_tracker_client announce '144.126.245.19:6969' 9c38422213e30bff212b30c360d26f9a02136422`
{
  "AnnounceIpv4": {
    "transaction_id": -888840697,
    "announce_interval": 300,
    "leechers": 0,
    "seeders": 1,
    "peers": []
  }

The problem could be the server is busy, but it does not look so:

image

In fact, it's strange because the server was restarting regularly when the memory was full, and it seems that's not happening now. It could be related to #14. Many announcement requests are rejected because of an invalid connection ID.

I'm going to close this and try to fix #14 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant