messagebird / pushprom

Pushprom is a proxy to the Prometheus Go client.
https://www.messagebird.com
BSD 2-Clause "Simplified" License
80 stars 13 forks source link

Stops listening on UDP port after getting invalid json #1

Closed elecnix closed 8 years ago

elecnix commented 8 years ago

This will cause prompush to return from the listenUDP function, causing it to close serverConn:

echo "hello" | nc --udp localhost -p 9090

logs:

2016/11/09 17:20:37 udp.go:36: Error: invalid character 'h' looking for beginning of value

then a second nc prints:

Ncat: Connection refused.

samwierema commented 8 years ago

Thanks for opening an issue @elecnix! I've asked a colleague to confirm the issue and hopefully we can patch it a.s.a.p.

samwierema commented 8 years ago

The issue should be resolved with the latest release @elecnix. Let us know if you find the same to be true!

elecnix commented 8 years ago

Thanks!