How to supply metainformation to host after noteVbContentDone (a.k.a. eCAP trailers)
Hi
I am working on an eCAP adapter for Squid 3.5 which computes content hashes and writes them to access.log.
So far the eCAP adapter does what it suppose to the only thing missing is to communicate the hash back to the host for writing to the access.log. The problem is that the host is calling visitEachOption(), which I use to handover the hash to the host with an eCAP header, directly after hostx->useAdapted() or hostx->useVirgin() is called. By this time the hash is not ready yet, because the file has not passed the adapter entirely.
At the moment I see the following solution for my problem:
Can I somehow force squid to call visitEachOption() at an other point? After the message has passed the adapter.
Is there another way to handover a string to squid for writing to access.log (linked to the http message)?
Is it possible for an adapter to get the entire message before calling hostx->
Would you recommend to change the host-adapter (squid src code) in order to call visitEachOption at the right point?
Thank you in advance for your help.
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: