Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split packages longer than 1024 bytes #29

Open
bkchr opened this issue Feb 27, 2018 · 1 comment
Open

Split packages longer than 1024 bytes #29

bkchr opened this issue Feb 27, 2018 · 1 comment

Comments

@bkchr
Copy link
Contributor

bkchr commented Feb 27, 2018

The RFC says that packages should not be longer than 1024 bytes. We should split these packages into multiple packages.

@Geal
Copy link
Owner

Geal commented Apr 7, 2018

hello,
do you mean packets?
RFC 3164 says total length should be 1024 bytes or less, but RFC 5424 does not define any upper limit, except that the receiver must support messages of size up to 480 bytes, and should support messages of size up to 2048 bytes.
If we split the messages, they will be understood as multiple syslog messages, which will not be valid.
It would be a better idea to have an option for maximum message length, and have the library return an error if the message would be too large.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants