libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] ZLib & MHD_create_response_from_fd_at_offset64: compress


From: silvioprog
Subject: [libmicrohttpd] ZLib & MHD_create_response_from_fd_at_offset64: compression on demand
Date: Fri, 4 Jan 2019 20:23:46 -0300

Hello dudes,

firstly, thanks Christian for indicating the MHD_fd* functions, I upgraded my library to use them! :-)

Now I have a new challenge. I'm going to create two new examples for MHD (issue #4914), however, I have a question. Is there any chance to use zlib to compress data when creating a response via MHD_create_response_from_fd_at_offset64()? I tried that, but it seems its internal read() cannot  be intercepted (to compress data on demand using zlib's compress2()). I would like to "intercept" the internal MHD's file_reader() (response.c:572) to reuse it instead of rewriting a new one, because the original already handles the reading in any supported platform.

Thanks in advance for any help!

--
Silvio Clécio

reply via email to

[Prev in Thread] Current Thread [Next in Thread]