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

http: Bugfix: http dd does not detect cURL compression support #4712

Merged

Conversation

therandomstring
Copy link
Contributor

So far the compilation of http_dd with compression options only detected the presence of Zlib. This caused a compilation error when Zlib was found, but cURL on the system has been compiled without it.

@kira-syslogng
Copy link
Contributor

Build FAILURE

2 similar comments
@kira-syslogng
Copy link
Contributor

Build FAILURE

@kira-syslogng
Copy link
Contributor

Build FAILURE

@kira-syslogng
Copy link
Contributor

Build FAILURE

@kira-syslogng
Copy link
Contributor

Build FAILURE

therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Jan 9, 2024
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Jan 9, 2024
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
@therandomstring therandomstring marked this pull request as ready for review January 9, 2024 11:22
@bazsi bazsi force-pushed the http-curl-fix-no-libz-support branch from dbd6f23 to 967fbbe Compare March 14, 2024 21:21
@bazsi
Copy link
Collaborator

bazsi commented Mar 14, 2024

I have cleaned up this patch and compression support somewhat. I am not saying I am perfectly happy, but things improved a lot. I have updated this branch by forcepushing to the original branch @therandomstring

I have manually tested the code with compression enabled and it does work, but there was a lot of churn. Some more testing would be appreciated.

therandomstring and others added 10 commits March 17, 2024 07:04
…L has been compiled without Zlib support.

Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
…ION macro instead

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
…grammar

Also add proper error handling to unrecognized compression methods.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
@bazsi bazsi force-pushed the http-curl-fix-no-libz-support branch from 967fbbe to 6cbb060 Compare March 17, 2024 06:04
@bazsi
Copy link
Collaborator

bazsi commented Mar 18, 2024

I am merging these with my latest changes. That moves the http compression implementation to something closer to what I would expect.

I've also fixed a bug which caused the "Content-Encoding" header to be included in each request 16 times (more exactly the number of workers times)

@alltilla alltilla merged commit 33459d9 into syslog-ng:master Mar 18, 2024
23 checks passed
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

Successfully merging this pull request may close these issues.

None yet

4 participants