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

amqp: drop message if it is larger than the max frame size #3869

Merged
merged 4 commits into from Jan 6, 2022

Conversation

alltilla
Copy link
Collaborator

@alltilla alltilla commented Jan 5, 2022

There is also a minor error reporting fix.

Fixes #3820

Signed-off-by: Attila Szakacs attila.szakacs@oneidentity.com

Since v0.4.0 users of the librabbitmq-c library do not have to
negate the result codes when using the error_string() functions.

All major distros have fresher than v0.4.0 librabbitmq-c libraries
(actually I could not find even one, which does not), so we can just
simply change the negation.

Signed-off-by: Attila Szakacs <attila.szakacs@oneidentity.com>
We are planning to map different AMQP result codes to different
LogThreadedResult codes. We cannot do that if afamqp_worker_publish()
can only return TRUE or FALSE.

Signed-off-by: Attila Szakacs <attila.szakacs@oneidentity.com>
We will never be able to send the message, so we should drop it.

Signed-off-by: Attila Szakacs <attila.szakacs@oneidentity.com>
Signed-off-by: Attila Szakacs <attila.szakacs@oneidentity.com>
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@MrAnno MrAnno added this to the syslog-ng-3.36 milestone Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants