[TS-2651] atscppapi: race conditions in destruction of async providers

Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/395f14b4
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/395f14b4
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/395f14b4

Branch: refs/heads/lua_config
Commit: 395f14b4ceaebc2d60aef924c9f1933e6fb405fd
Parents: ce43725
Author: Brian Geffon <[email protected]>
Authored: Wed Mar 19 15:57:42 2014 -0700
Committer: Brian Geffon <[email protected]>
Committed: Wed Mar 19 15:57:42 2014 -0700

----------------------------------------------------------------------
 lib/atscppapi/src/include/utils_internal.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/395f14b4/lib/atscppapi/src/include/utils_internal.h
----------------------------------------------------------------------
diff --git a/lib/atscppapi/src/include/utils_internal.h 
b/lib/atscppapi/src/include/utils_internal.h
index edc02c2..7cef956 100644
--- a/lib/atscppapi/src/include/utils_internal.h
+++ b/lib/atscppapi/src/include/utils_internal.h
@@ -83,10 +83,13 @@ public:
   }
 
   static void dispatchInterceptEvent(InterceptPlugin *plugin, TSEvent event, 
void *edata) {
-    ScopedSharedMutexLock scopedSharedMutexLock(plugin->getMutex());
     plugin->handleEvent(static_cast<int>(event), edata);
   }
 
+  static void deleteAsyncHttpFetch(AsyncHttpFetch *fetch) {
+    delete fetch;
+  }
+
 }; /* internal */
 
 } /* utils */

Reply via email to