Closed imriz closed 3 years ago
New lines are not being appended to the metric (https://github.com/reinh/statsd/blob/3863a1a341d21b3c81a0ab9aebc6bd901da45323/lib/statsd.rb#L502), and therefore breaks TCP (since newlines are mandatory in TCP, see https://github.com/statsd/statsd/blob/3a3ced99de00855dfc0a45386f466ad5a8d8a549/docs/server.md).
https://github.com/reinh/statsd/blob/3863a1a341d21b3c81a0ab9aebc6bd901da45323/lib/statsd.rb#L479
This line ^ Needs
message += "\n"
above it for TCP to work
New lines are not being appended to the metric (https://github.com/reinh/statsd/blob/3863a1a341d21b3c81a0ab9aebc6bd901da45323/lib/statsd.rb#L502), and therefore breaks TCP (since newlines are mandatory in TCP, see https://github.com/statsd/statsd/blob/3a3ced99de00855dfc0a45386f466ad5a8d8a549/docs/server.md).