SyslogNet
SyslogNet copied to clipboard
SyslogEncryptedTcpSender MessageLength is not correct
Hi,
Below is the message received from SyslogNet library for SyslogEncryptedTcpSender.
108 <54>1 2019-06-26T09:48:06.979058+05:30 MD1WU1QC Source_TCP TestRfc5424 TestRfc5424 - This is 5424 Message
If you see above message actually the Message length is 106 but it is sent as 108 which is incorrect. Assembly Version Used : 1.0.3.3.
Hi, I think it might be correct. As per RFC 5424 the message part is encoded in UTF8 and 3 UTF preamble bytes are included before the message text. You don't see them, but they are there ;). So the message has 105 characters (not 106) + 3 = 108.