fail2ban-prometheus-exporter/src/socket
Hector e5714b7485 fix: read socket response data in chunks
Read the response data from the socket in chunks to prevent errors when
processing large payloads. The initial implementation solved large payloads
by just defining a very large buffer, but this is not a solution. The new
code reads the socket data in a loop until a terminator is found and
appends all the data into a single byte array.
Reduce the buffer size to `1024` bytes.
2021-08-29 16:02:31 +01:00
..
decoder.go feat: collect new up metric from fail2ban socket 2021-08-29 11:50:53 +00:00
fail2banSocket.go feat: collect new up metric from fail2ban socket 2021-08-29 11:50:53 +00:00
protocol.go fix: read socket response data in chunks 2021-08-29 16:02:31 +01:00