gzip adapter

Asked by Researcher2017

Hi,

I want to write an adapter (or modify an existing one) that can compress compressible contents (text/*, application/xml, application/javascript...). I don't know where to begin. Can anybody help me please?

FYI it seems that the https://github.com/c-rack/squid-ecap-gzip ad adapter is no longer maintained. In all cases according to Squid developpers/maintainers it makes crash the main Squid process when chained with an icap adapter. Please refer to the following discussion for further information: http://squid-web-proxy-cache.1019090.n4.nabble.com/Chaining-icap-and-ecap-services-FATAL-Received-Segment-Violation-dying-td4683033.html

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
eCAP Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Rousskov
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Rousskov (rousskov) said :
#1

If you are sure that you want to write an adapter (instead of purchasing an existing one), then I would start by studying sample adapters and available eCAP documentation. Once you understand how all sample adapters work, you can write a simple adapter that buffers the entire message body and then compresses it. Once that buffering/blocking adapter is working, you can advance to a streaming gzip adapter that compresses message body on the fly.

zlib is often used for compression. Its modern versions support HTTP gzip compression natively.

Revision history for this message
Researcher2017 (researcher2017) said :
#2

Hi,

After much delay, thank you for your guidance. I'll begin coding ASAP and certainly get back to you with questions.

In case where I decide to purchase an existing adapter, can you please send me a quote?

Warm Regards,

Revision history for this message
Researcher2017 (researcher2017) said :
#3

Thanks Alex Rousskov, that solved my question.

Revision history for this message
Alex Rousskov (rousskov) said :
#4

> In case where I decide to purchase an existing adapter, can you please send me a quote?

Launchpad is not the right place for business transactions. If you would like to purchase an adapter, please contact those individuals or companies you want to purchase it from directly. You can also post a Request For Proposals on the e-cap users mailing list.