Mantain information between request and response

Asked by Luis Felipe Domínguez Vega on 2018-11-13

Hello, I'm creating a module in eCAP for Squid that get metric about the bandwith usage group by user, url. But the problem is that a request is separated of a response, and in the response i can get the URI.
In every request i generate a UUID to identify that connection, but i want that the response get this UUID too, so how i can get this.

Question information

Language:
English Edit question
Status:
Expired
For:
eCAP Edit question
Assignee:
No assignee Edit question
Last query:
2018-11-13
Last reply:
2018-11-29

This question was reopened

Alex Rousskov (rousskov) said : #1

Alex Rousskov suggests this article as an answer to your question:
FAQ #2117: “How to pass information from REQMOD to RESPMOD?”.

Thanks.... RTFM to me gggg

Thanks Alex Rousskov, that solved my question.

Well now i was remplement the options and visitEachOption, but i not see a mode to obtain that value, because with:

hostx->option(libecap::metaSubscriberId).toString()

always returns "". This is coded on my XAction constructor implementation....

Alex Rousskov (rousskov) said : #5

I can nominate three suspects:

1. Your REQMOD eCAP service is not _setting_ the option (correctly).
2. You are not telling your host application to pass X-Subscriber-ID header from one eCAP transaction to another.
3. Your host application is buggy.

You have not provided enough information to distinguish these three cases.

Launchpad Janitor (janitor) said : #6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.