-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS-4523 - Add pause functionality to the TransformationPlugin interface. #712
Conversation
[approve ci] |
Linux build failed! See https://ci.trafficserver.apache.org/job/Github-Linux/165/ for details. |
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/271/ for details. |
Remember to run clang-format on any contribution :) It's easiest done with a simple
|
A couple of comments:
|
aa195dd
to
cde183f
Compare
[approve ci] |
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/185/ for details. |
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/293/ for details. |
Some minor details here:
@ushachar Can you help land this? |
Yep. Getting back to this asap.... |
The reason for wanting this feature is to support prolonged content related actions -- in @davidbz case out-of-process content malware analysis. When acting as a forward proxy and handling a request for a very large file, he needs to support an initial analysis on the first N MBs of the file in order to decide if he must analyze the full file or can release it to the client. @bgaff - I know you had some concerns regarding this - does this use case seem reasonable to you? |
[approve ci] |
FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/929/ for details. |
Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/823/ for details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you squash the Makefile removal commit?
@ushachar Done. Thanks |
@jpeach / @SolidWallOfCode - Since there were a couple of concerns about this API in the beginning could one of you ack this as well? |
@davidbz |
[approve ci] |
@bryancall Sure! Thanks |
@bryancall Done. |
[approve ci] |
082c2ff
to
a46d4c1
Compare
[approve ci] |
@bryancall Hi, commit is squashed and ready for merge :) |
…pache#712) Also completes transition to using TSDbg(), not TSDebug().
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.