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

does not time out #468

Open
PowerWordTree opened this issue Jan 23, 2024 · 3 comments
Open

does not time out #468

PowerWordTree opened this issue Jan 23, 2024 · 3 comments

Comments

@PowerWordTree
Copy link

PowerWordTree commented Jan 23, 2024

Archlinux 6.7.0-arch3-1
inadyn 2.12.0-1

root@nas ~ # inadyn -l debug --foreground --force --once
inadyn[51258]: In-a-dyn version 2.12.0 -- Dynamic DNS update client.

......

Host: api.cloudflare.com
User-Agent: Mozilla/5.0
Accept: */*
Authorization: Bearer <hidehidehidehidehidehidehidehidehidehidehidehide>
Content-Type: application/json
Content-Length: 85

{"type":"A","name":"<hidehidehidehidehide>","content":"<hidehidehidehidehide>","ttl":1,"proxied":false}
inadyn[51258]: Successfully sent HTTPS request!
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C

The program does not time out and cannot be stopped

@troglobit
Copy link
Owner

A bit more info is needed so we can try to reproduce the issue. E.g., command line options, relevant parts of .conf file (credentials and urls redacted of course).

I don't have access to Cloudflare myself, so I'm hoping someone else can step in.

@PowerWordTree
Copy link
Author

This is my config file

period = 60
forced-update = 86400
user-agent = Mozilla/5.0

provider [email protected] {
    username = <hidehidehidehidehide>
    password = <hidehidehidehidehidehidehidehidehidehidehidehide>
    hostname = <hidehidehidehidehide>
    ttl = 1
    proxied = false
}

My access to CF is very unstable, which may be the cause of the problem.
Maybe the response from CF was not received.

thanks

@Smart123s
Copy link

Could be this issue: https://stackoverflow.com/questions/5114292/break-interrupt-a-time-sleep-in-python
In know the question is about python, but process sleeping works the same way on Linux, regardless of the programming language.

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

3 participants