Section 3.4.2 of RFC6587 defines non-transparent-framing. This patch changes rfc6587.go to assume it just encountered non-transparent-framing if parsing an integer during octet counting fails.
As the trailer used in non-transparent-framing is not exactly specified in the RFC, this patch does not try to find any and instead assumes that the whole remainder of scannable data belongs to just a single message.
Looking forward to suggestions on how to improve this, if you have any.
Section 3.4.2 of RFC6587 defines non-transparent-framing. This patch changes
rfc6587.go
to assume it just encountered non-transparent-framing if parsing an integer during octet counting fails.As the trailer used in non-transparent-framing is not exactly specified in the RFC, this patch does not try to find any and instead assumes that the whole remainder of scannable data belongs to just a single message.
Looking forward to suggestions on how to improve this, if you have any.