GUI / nginx-upstream-dynamic-servers

An nginx module to resolve domain names inside upstreams and keep them up to date.
MIT License
312 stars 74 forks source link

Error log spamming #22

Open sdurrheimer opened 8 years ago

sdurrheimer commented 8 years ago

Hi there,

When a upstream DNS name doesn't respond, the module use a null route with the IP 127.255.255.255, but when the upstream is back online, the module keep logging the following error:

2016/09/01 12:02:31 [error] 695#0: connect() to 127.255.255.255:9002 failed (101: Network is unreachable), context: ngx.timer

Is there a way to avoid this ?

Thanks in advance,

wandenberg commented 7 years ago

@sdurrheimer can you confirm if when you saw this behaviour you were using the keepalive directive or not? Can you provide more log lines? And if possible, how to reproduce the error? I tried to reproduce, but was not well succeeded.