write_prometheus: Set SO_REUSEADDR on listening socket
authorPavel Rochnyack <pavel2000@ngs.ru>
Sat, 10 Feb 2018 10:46:30 +0000 (17:46 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sat, 10 Feb 2018 11:13:01 +0000 (18:13 +0700)
commit2c78bdf94c0fdd6240d5d202cf5aba12ac8c5a20
tree5d70083857ea12843e8a49608dc012184f302d3f
parentcc61d3adc20693ab3fe8f48c37eeb1167b41773a
write_prometheus: Set SO_REUSEADDR on listening socket

Otherwise Collectd fails to bind the socket after restart.

Thanks to Richard Weinberger and Brandon Hume for reporting.

Closes: #2570
Closes: #2673
src/write_prometheus.c