mcuadros / go-syslog

Syslog server library for go.
http://godoc.org/gopkg.in/mcuadros/go-syslog.v2
MIT License
523 stars 143 forks source link

Support non-transparent-framing #32

Closed SHyx0rmZ closed 8 years ago

SHyx0rmZ commented 8 years ago

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.