When detaching a pipe, as well as checking the delay on connect sockopt is set, also ensure that the protocol is not pgm or epgm as we are not implementing the functionality for multicase types

This commit is contained in:
Ian Barber
2012-06-05 18:41:38 +01:00
parent 09d18e4b3c
commit 5008f385ba

View File

@@ -408,7 +408,8 @@ void zmq::session_base_t::detached ()
// For delayed connect situations, terminate the pipe
// and reestablish later on
if (pipe && options.delay_attach_on_connect == 1) {
if (pipe && options.delay_attach_on_connect == 1
&& addr->protocol != "pgm" && addr->protocol != "epgm") {
pipe->terminate (false);
socket->terminated (pipe);
pipe = NULL;