This is great, looking forward to the code. I can see how this can be
useful.

On Thu, Sep 10, 2015 at 4:00 AM, Daniel Morilha <[email protected]>
wrote:

>
>
> Hello,
>
> During the last 2 months I've been working on a generic plug-in to
> multiplex requests per remap basis. The plug-in clones the request (and the
> body in case method is POST) modifying the host header and sending an
> additional request with TSHttpConnect api. The response pay-load is
> consumed and dropped on the floor. For the user everything is transparent
> and the response from the original remap is properly forwarded and not
> interfered with.
>
> Here is a *remaps.config* example:
>
> map http://localhost http://localhost:8181 @plugin=ats-multiplexer.so
> @pparam=host1 @pparam=host2
> map http://host1 http://localhost:8181
> map http://host2 http://localhost:8181
>
> In this example a request to localhost is multiplexed twice to
> localhost:8181 with Host header modified to *host1* and *host2.*
>
> The code is intend to multiplex data beacons where multiple origins need
> to consume the same beacon and we don't want to send them from the browser
> multiple times. The plug-in is already running on production for a Yahoo
> Search URL redirect for an expressive amount of traffic. There are no
> dependencies apart C++ stdlib and Traffic Server API itself and it has been
> tested with the latest ATS.
>
> Once I feel it is finished, I wish to contribute the code back to the
> community as a generic plug-in with traffic server code base.
>
> Please let me know if there is interest and any other remaining question.
>
> Thanks,
>

Reply via email to