-
Notifications
You must be signed in to change notification settings - Fork 490
http driver compression options #4137
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
Conversation
This user does not have permission to start the build. Can one of the admins verify this patch and start the build? |
1 similar comment
This user does not have permission to start the build. Can one of the admins verify this patch and start the build? |
No news file has been detected. Please write one, if applicable. |
@kira-syslogng add to whitelist |
@kira-syslogng do stresstest |
Kira-stress-test: Build SUCCESS |
Wow. @ryanfaircloth I think you were interested in something like this. |
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
bad6ef9
to
d7812db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a really nice feature, good job!
Unfortunately, I did not have the time to finish my review, but I will get back to it later.
In the meantime I think it is worth to share some of my findings, so you have the possibility to start working on them.
Build FAILURE |
1 similar comment
Build FAILURE |
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
3587300
to
166a8c2
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
7747609
to
818e21d
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
818e21d
to
237dde7
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
237dde7
to
2e7997a
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
2e7997a
to
1b743e6
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
1b743e6
to
ba5d83d
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
ba5d83d
to
a5fc2c6
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
776f3c6
to
d18fe5b
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
274af59
to
192b1d7
Compare
Thanks for the changes, this looks good! |
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
…compression' Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
192b1d7
to
726936e
Compare
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Zlib handles gzip and deflate the same, the difference is only a magic constant. (16 needs to be added to WBITS to indicate gzip compression to Zlib. See: https://www.zlib.net/manual.html chapter VIII.) Compressed data can be 10% larger than uncompressed (see Zlib `compress2()`) + 22 bytes are added for header/footer. Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
…lemented compression types Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
The specific test function is needed, because the compressed string is likely to contain null characters. Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
d93601a
to
b77018b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing feature, good job!
Added compression ability to http destination driver using partially built-in libcurl-capabilities (for accepting compressed headers) and own compression algorithm for outward compression using zlib.
Currently supported compression types are gzip and deflate.
resolves #3923