Feuerlabs/exometer — pull request #122 by jpuigm (2014-12-20 00:08:31+00:00)
Title: Force to reconnect when socket is not connected

The call `affix:send/2` may return `{error, enotconn}` when socket is disconnected (coming straight from `prim_inet/send/2`).

`exometer_report_collectd` ignores that possible error and continuously tries to push metrics without attempting to reconnect. This case clause aims to amend that problem, forcing the reporter to reconnect.