Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4129

Support TSContSchedule in ts_lua plugin

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.2.0
    • Lua, Plugins
    • None

    Description

      We want to allow to write lua script for ts_lua plugin to use TSContSchedule()

      Attachments

        Activity

          githubbot ASF GitHub Bot added a comment -

          GitHub user shukitchan opened a pull request:

          https://github.com/apache/trafficserver/pull/420

          TS-4129 Support TSContSchedule in ts_lua plugin

          @jpeach , pls help to take a look.

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/shukitchan/trafficserver schedule-patch

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/trafficserver/pull/420.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 #420


          commit b4af1ede8e1a1d2cfeaa6fcb9addc8f44250d3d8
          Author: Kit Chan <kichan@apache.org>
          Date: 2016-01-04T20:34:25Z

          support TSContSchedule() in ts_lua

          commit 6849a45f3e4ee710aab48b711ebf72d64e3682c7
          Author: Kit Chan <kichan@apache.org>
          Date: 2016-01-04T20:49:34Z

          add an example


          githubbot ASF GitHub Bot added a comment - GitHub user shukitchan opened a pull request: https://github.com/apache/trafficserver/pull/420 TS-4129 Support TSContSchedule in ts_lua plugin @jpeach , pls help to take a look. You can merge this pull request into a Git repository by running: $ git pull https://github.com/shukitchan/trafficserver schedule-patch Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafficserver/pull/420.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 #420 commit b4af1ede8e1a1d2cfeaa6fcb9addc8f44250d3d8 Author: Kit Chan <kichan@apache.org> Date: 2016-01-04T20:34:25Z support TSContSchedule() in ts_lua commit 6849a45f3e4ee710aab48b711ebf72d64e3682c7 Author: Kit Chan <kichan@apache.org> Date: 2016-01-04T20:49:34Z add an example
          githubbot ASF GitHub Bot added a comment -

          Github user shukitchan commented on the pull request:

          https://github.com/apache/trafficserver/pull/420#issuecomment-172102643

          nice catch on both cases. let me update the PR over the weekend after some tests on the new code.

          githubbot ASF GitHub Bot added a comment - Github user shukitchan commented on the pull request: https://github.com/apache/trafficserver/pull/420#issuecomment-172102643 nice catch on both cases. let me update the PR over the weekend after some tests on the new code.
          githubbot ASF GitHub Bot added a comment -

          Github user shukitchan commented on the pull request:

          https://github.com/apache/trafficserver/pull/420#issuecomment-172416165

          I just updated the pull request. @jpeach, pls take a look. Thanks.

          githubbot ASF GitHub Bot added a comment - Github user shukitchan commented on the pull request: https://github.com/apache/trafficserver/pull/420#issuecomment-172416165 I just updated the pull request. @jpeach, pls take a look. Thanks.
          githubbot ASF GitHub Bot added a comment -

          Github user shukitchan commented on the pull request:

          https://github.com/apache/trafficserver/pull/420#issuecomment-172630184

          A couple of functions will result in LUA_YIELD, such as sleep() and fetch(). And they all have schedule event to happen through their handler and those handler will eventually do the duty of TS_LUA_EVENT_COROUTINE_CONT.

          githubbot ASF GitHub Bot added a comment - Github user shukitchan commented on the pull request: https://github.com/apache/trafficserver/pull/420#issuecomment-172630184 A couple of functions will result in LUA_YIELD, such as sleep() and fetch(). And they all have schedule event to happen through their handler and those handler will eventually do the duty of TS_LUA_EVENT_COROUTINE_CONT.
          githubbot ASF GitHub Bot added a comment -

          Github user shukitchan commented on the pull request:

          https://github.com/apache/trafficserver/pull/420#issuecomment-173363535

          @jpeach , any other advice?

          githubbot ASF GitHub Bot added a comment - Github user shukitchan commented on the pull request: https://github.com/apache/trafficserver/pull/420#issuecomment-173363535 @jpeach , any other advice?
          githubbot ASF GitHub Bot added a comment -

          Github user shukitchan commented on the pull request:

          https://github.com/apache/trafficserver/pull/420#issuecomment-173363560

          before i merge?

          githubbot ASF GitHub Bot added a comment - Github user shukitchan commented on the pull request: https://github.com/apache/trafficserver/pull/420#issuecomment-173363560 before i merge?
          githubbot ASF GitHub Bot added a comment -

          Github user jpeach commented on the pull request:

          https://github.com/apache/trafficserver/pull/420#issuecomment-173394104

          +1 merge it

          githubbot ASF GitHub Bot added a comment - Github user jpeach commented on the pull request: https://github.com/apache/trafficserver/pull/420#issuecomment-173394104 +1 merge it

          Commit d30401990ada424cb0b6acbcb4cfeab31bdb979f in trafficserver's branch refs/heads/master from kichan
          [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d304019 ]

          TS-4129: Support TSContSchedule in ts_lua plugin. This closes #420

          jira-bot ASF subversion and git services added a comment - Commit d30401990ada424cb0b6acbcb4cfeab31bdb979f in trafficserver's branch refs/heads/master from kichan [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d304019 ] TS-4129 : Support TSContSchedule in ts_lua plugin. This closes #420
          githubbot ASF GitHub Bot added a comment -

          Github user asfgit closed the pull request at:

          https://github.com/apache/trafficserver/pull/420

          githubbot ASF GitHub Bot added a comment - Github user asfgit closed the pull request at: https://github.com/apache/trafficserver/pull/420

          Commit 304b6a6ebf7967b3d2ed56591cd89afc36564a30 in trafficserver's branch refs/heads/master from kichan
          [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=304b6a6 ]

          TS-4129: fix build error

          jira-bot ASF subversion and git services added a comment - Commit 304b6a6ebf7967b3d2ed56591cd89afc36564a30 in trafficserver's branch refs/heads/master from kichan [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=304b6a6 ] TS-4129 : fix build error

          People

            kichan Shu Kit Francis Chan
            kichan Shu Kit Francis Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: