[
https://issues.apache.org/jira/browse/TS-4523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15330148#comment-15330148
]
ASF GitHub Bot commented on TS-4523:
------------------------------------
GitHub user davidbz opened a pull request:
https://github.com/apache/trafficserver/pull/712
TS-4523
Adding the pause functionality to the TransformationPlugin.
Api changes:
Added the pause() method to the TransformationPlugin, the return value is a
TSCont which you can schedule whenever you wish to resume the transformation.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/davidbz/trafficserver TS-4523
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/712.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #712
----
commit ca61aa0b7f117e691520a214a7e70b31248b828a
Author: David Ben Zakai <[email protected]>
Date: 2016-06-14T08:59:10Z
TS-4523
----
> Add the ability to pause/resume data consumption in the CPP API
> ---------------------------------------------------------------
>
> Key: TS-4523
> URL: https://issues.apache.org/jira/browse/TS-4523
> Project: Traffic Server
> Issue Type: Improvement
> Components: Plugins
> Reporter: David Ben Zakai
> Assignee: Uri Shachar
> Fix For: 7.0.0
>
>
> It would be nice to be able to pause/resume the data consumption in the
> Transformation Plugin.
> My Own Use case:
> I'm writing the data into a file, when it reaches a certain size I'd like to
> produce the file output for the downstream, while doing so I'd like to avoid
> reading more data from the upstream.
> So the flow would be:
> consume -> write into a file (K times)
> file reaches X KB ?
> pause upstream socket
> produce data from file
> resume
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)