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)
committerJohn-John Tedro <udoprog@spotify.com>
Tue, 17 Sep 2013 13:49:25 +0000 (15:49 +0200)
commit78c0678a23963a829e41f03b5540bcb3dc585b59
tree5084261566a0ba59d52d51845a9f449eade8652d
parentf6b9d3b2d95a140eaf9537cae08069b6856684b2
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