write_riemann plugin: Receive acknowledge message when using TCP.
authorJohn-John Tedro <udoprog@spotify.com>
Tue, 17 Sep 2013 13:40:13 +0000 (15:40 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 3 Mar 2014 14:29:52 +0000 (15:29 +0100)
commite5d3760160c8fdadc81115e4f81dbb91569a8e7d
treef227345daad43f09779c3d369ab758d8629205b2
parentb21ab82a9ffe2a74a29c1dd606cb2ca7db6cd985
write_riemann plugin: Receive acknowledge message when using TCP.

Not receiving an acknowledge message when communicating with riemann over TCP
will cause the riemann instance to eventually hang for extended periods of time
because of resource exhaustion.

Took the time to reaorganize the riemann_send function to simplify locking.
src/write_riemann.c