You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by SolidWallOfCode <gi...@git.apache.org> on 2016/05/25 00:02:22 UTC

[GitHub] trafficserver pull request: TS-4481: CPP API - clear handles and r...

GitHub user SolidWallOfCode opened a pull request:

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

    TS-4481: CPP API - clear handles and reload on demand.

    The changes are
    
    * The handles are cleared, not re-initialized, per hook.
    * Handles are loaded from the transaction object on demand.
    * The current event is stored in the `state_` rather than being passed around because only one method, as far as I can tell, actually needs it.


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

    $ git pull https://github.com/SolidWallOfCode/trafficserver ts-4481

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

    https://github.com/apache/trafficserver/pull/663.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 #663
    
----
commit 5ca66171890ae1bbcdb875885a2a461660c33ba3
Author: Alan M. Carroll <am...@apache.org>
Date:   2016-05-24T23:54:49Z

    TS-4481: CPP API - clear handles and reload on demand.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #663: TS-4481: CPP API - clear handles and reload on dem...

Posted by zwoop <gi...@git.apache.org>.
Github user zwoop commented on the issue:

    https://github.com/apache/trafficserver/pull/663
  
    [approve ci]


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #663: TS-4481: CPP API - clear handles and reload on dem...

Posted by atsci <gi...@git.apache.org>.
Github user atsci commented on the issue:

    https://github.com/apache/trafficserver/pull/663
  
    Linux build *successful*! See https://ci.trafficserver.apache.org/job/Github-Linux/193/ for details.
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #663: TS-4481: CPP API - clear handles and reload on dem...

Posted by zwoop <gi...@git.apache.org>.
Github user zwoop commented on the issue:

    https://github.com/apache/trafficserver/pull/663
  
    clang-format


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request: TS-4481: CPP API - clear handles and r...

Posted by SolidWallOfCode <gi...@git.apache.org>.
Github user SolidWallOfCode commented on the pull request:

    https://github.com/apache/trafficserver/pull/663#issuecomment-221594161
  
    Unfortunately `event_` is actually used in `Transaction::initCachedRequest` to do handle initialization differently for `TS_EVENT_HTTP_TXN_CLOSE`. I don't understand the implications well enough to say if that's important.
    
    As for removing the handle caching stuff, at this point that's effectively what I've done. We could just move the content of the init methods in to the get methods since the latter are just wrappers for the former.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #663: TS-4481: CPP API - clear handles and reload on dem...

Posted by jpeach <gi...@git.apache.org>.
Github user jpeach commented on the issue:

    https://github.com/apache/trafficserver/pull/663
  
    The last commit probably needs a more succinct title. Otherwise, is this ready to go?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request: TS-4481: CPP API - clear handles and r...

Posted by bgaff <gi...@git.apache.org>.
Github user bgaff commented on the pull request:

    https://github.com/apache/trafficserver/pull/663#issuecomment-221594976
  
    Sounds good. Thanks


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #663: TS-4481: CPP API - clear handles and reload on dem...

Posted by atsci <gi...@git.apache.org>.
Github user atsci commented on the issue:

    https://github.com/apache/trafficserver/pull/663
  
    Linux build *failed*! See https://ci.trafficserver.apache.org/job/Github-Linux/266/ for details.
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request #663: TS-4481: CPP API - clear handles and reload...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #663: TS-4481: CPP API - clear handles and reload on dem...

Posted by atsci <gi...@git.apache.org>.
Github user atsci commented on the issue:

    https://github.com/apache/trafficserver/pull/663
  
    FreeBSD build *successful*! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/371/ for details.
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request: TS-4481: CPP API - clear handles and r...

Posted by bgaff <gi...@git.apache.org>.
Github user bgaff commented on the pull request:

    https://github.com/apache/trafficserver/pull/663#issuecomment-221442464
  
    Fwiw I think it might make sense to fully remove event_, nothing really needs it. It just helps when debugging if you couldn't get a handle to a request/response object you can determine what state the SM was in when you attempted to get it to identify user error, other than that it's not used anywhere, right?
    
    One thing I was thinking was that it might make sense to remove all that handle caching stuff and initializing code and just fetch the handles in Transaction::get(Client/Server)(Request/Response)(), thoughts?
    
    Other than that I'm \U0001f44d  with this change.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #663: TS-4481: CPP API - clear handles and reload on dem...

Posted by atsci <gi...@git.apache.org>.
Github user atsci commented on the issue:

    https://github.com/apache/trafficserver/pull/663
  
    FreeBSD build *successful*! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/301/ for details.
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---