SyslogNet icon indicating copy to clipboard operation
SyslogNet copied to clipboard

SyslogEncryptedTcpSender MessageLength is not correct

Open bharathreddyi opened this issue 6 years ago • 1 comments

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.

bharathreddyi avatar Jun 26 '19 10:06 bharathreddyi

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.

Alex18947 avatar Aug 21 '19 15:08 Alex18947