joemiller/collectd-graphite — pull request #13 by amosshapira (2012-07-20 05:09:05+00:00)
Title: Make the socket permanent

Instead of opening and closing the socket on every write, this change keeps the socket open the first time it's required and closes it on flush.

Due to the way the collectd-perl works with threads, a separate socket will be maintained for each collectd thread. On my systems this means 5 connections. I think this is a good trade-off to constant open/close of sockets.