The breaking change is we have to use \n as the delimiter for every message sent to the socket input.
This simplified the error handling when there are some malformed data send to our server.
BTW, it can keep TCP connection alive now, otherwise, we may have tons of message data in the stream copy buffer as the result of io.TeeReader.
Hi, I have added a UDP input support.
The breaking change is we have to use
\n
as the delimiter for every message sent to the socket input. This simplified the error handling when there are some malformed data send to our server.BTW, it can keep TCP connection alive now, otherwise, we may have tons of message data in the stream copy buffer as the result of
io.TeeReader
.