Skip to content

unbound-control timeout when Unbound is not running #371

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

Closed
BBcan177 opened this issue Dec 10, 2020 · 2 comments
Closed

unbound-control timeout when Unbound is not running #371

BBcan177 opened this issue Dec 10, 2020 · 2 comments

Comments

@BBcan177
Copy link

unbound-control timeout when Unbound is not running:

unbound-control -c /var/unbound/unbound.conf  status

version: 1.12.0
verbosity: 2
threads: 1
modules: 2 [ python iterator ]
uptime: 10628 seconds
options: control(ssl)
unbound (pid 98061) is running...

unbound-control -c /var/unbound/unbound.conf stop
ok

unbound-control -c /var/unbound/unbound.conf status
Command takes forever to time-out.

Its the same for any other unbound-control command when Unbound is not running.

@wcawijngaards
Copy link
Member

I do not get this, not for using a pipe and not when I use an ssl connection. It prints connect: Connection refused, immediately, and then unbound is stopped.

What settings do you have? I am using 127.0.0.1 for the SSL setup and a named pipe file for the unix socket setup.

@wcawijngaards
Copy link
Member

Fixed this in the commit referenced, that adds a timeout of a couple seconds. When it expires, it prints that the remote server has timed out.

jedisct1 added a commit to jedisct1/unbound that referenced this issue Dec 11, 2020
* nlnet/master:
  - Fix missing prototypes in the code.
  Changelog note for NLnetLabs#373 - Merge PR NLnetLabs#373 from fobser: Warning: arithmetic on a pointer to void   is a GNU extension.
  Changelog note for NLnetLabs#335 - Merge PR NLnetLabs#335 from fobser: Sprinkle in some static to prevent   missing prototype warnings.
  Warning: arithmetic on a pointer to void is a GNU extension.
  - Fix to squelch permission denied and other errors from remote host,   they are logged at higher verbosity but not on low verbosity.
  - Fix NLnetLabs#371: unbound-control timeout when Unbound is not running.
  - iana portlist updated.
  - make depend.
  Code repo continues for 1.13.1 in development.
  - Fix update, with write event check with streamreuse and fastopen.
  - Fix for NLnetLabs#283: fix stream reuse and tcp fast open.
  - Fix on windows to ignore connection failure on UDP, unless verbose.
  - Fix unbound-dnstap-socket to not use log routine from interrupt   handler and not print so frequently when invoked in sequence.
  - Fix NLnetLabs#356: deadlock when listening tcp.
  - Fix NLnetLabs#360: for the additionally reported TCP Fast Open makes TCP   connections fail, in that case we print a hint that this is   happening with the error in the logs.
  Sprinkle in some static to prevent missing prototype warnings.
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

2 participants