🎇 Gluon A composable message bus for Event-Driven systems written in Go.
Apr 12, 2022
Comments
Use Dial instead of DialUDP and ResolveUDPAddr
The motivation behind this is to support IPv6 hosts as DialUDP currently gives preference to IPv4 (might be fixed in 1.14): https://github.com/golang/go/issues/28666
Dial must be a sensible choice I believe as it takes off the overhead of DNS lookup and also prioritization of IPv4 and IPv6 which is automatically performed (v6 > v4).
Set MaxChunkSizeWan in Log() despite of setting lan chunksize
Here when loging a new log
https://github.com/robertkowalski/graylog-golang/blob/e5295cfa28272ada50cb9b5d97696ee06e49ed42/gelf.go#L72
Instead, should I call this function?
https://github.com/robertkowalski/graylog-golang/blob/e5295cfa28272ada50cb9b5d97696ee06e49ed42/gelf.go#L109