fix trex-361
authorHanoh Haim <[email protected]>
Mon, 27 Feb 2017 11:53:38 +0000 (13:53 +0200)
committerHanoh Haim <[email protected]>
Mon, 27 Feb 2017 11:54:43 +0000 (13:54 +0200)
Signed-off-by: Hanoh Haim <[email protected]>
src/publisher/trex_publisher.cpp

index 224604e..dc37d14 100644 (file)
@@ -76,10 +76,15 @@ TrexPublisher::Delete(){
         zmq_close (m_publisher);
         m_publisher = NULL;
     }
+
+/* Deadlock inside ZMQ better to have leakage in termination - see 
+  https://trex-tgn.cisco.com/youtrack/issue/trex-361 */
+#if 0
     if (m_context) {
         zmq_ctx_destroy (m_context);
         m_context = NULL;
     }
+#endif
 }