You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by clearswift <gi...@git.apache.org> on 2017/01/20 12:02:37 UTC
[GitHub] trafficserver issue #1351: Possible spurious warning in InkAPI
GitHub user clearswift opened an issue:
https://github.com/apache/trafficserver/issues/1351
Possible spurious warning in InkAPI
The InkAPI.cc code has a warning in the handle_event method:
Warning("INKCont Deletable but not deleted %d", m_event_count);
This seems to get triggered when I do not think there is an issue. This can be recreated by running the NullTransformation C++ SDK example plugin. While monitoring the diags.log file this warning can be observed sometimes while browsing. I used wget a number of times and this warning would be raised sometimes.
I added logging to the InkAPI.cc where the free() method is called and it seems that all of the continuations/vconns are being freed.
The bnull-transform example does not show this problem but it can be adapted to use the same logic as the C++ SDK and then the warning does start to appear. To do this I added a TS_HTTP_TXN_CLOSE_HOOK hook and then called TSContDestroy on the transform vconn where it was originally destroyed in the transform event handler. I have attached the source code for this.
Is my assumption correct that this warning is not required?
[bnull-transform-warning.zip](https://github.com/apache/trafficserver/files/719272/bnull-transform-warning.zip)
----
----
---
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.
---