troglobit/inadyn

does not time out

PowerWordTree opened this issue · 3 comments

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

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.

This is my config file

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

provider default@cloudflare.com {
    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

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.