DataDog / java-dogstatsd-client

Java statsd client library
MIT License
176 stars 101 forks source link

AMLII-2058 Use correct buffer size for unix sockets #256

Closed vickenty closed 1 month ago

vickenty commented 1 month ago

When the client is configured to use UDS via builder's address() method, the client defaulted to UDP-sized buffer.

This patch adds a method to the ClientChannel to fetch the default packet size for each transport type, and uses it in the client to pass the correct value to the processor. The maxPacketSizeBytes field of the resolved builder is reduced to only storing the user preferred configuration, if any.