Revert "After speaking with Ben Gray and the discussion on the mailing list, this is an attempt to create a sockopt to allow connecting pipes to not immediately be available for traffic. The problem is in a PUSH to many PULL situation, where there is a connect to a PULL which is not there. This connect will immediately create a pipe (unlike bind), and traffic will be load balanced to that pipe. This means if there is a persistently unavailable end point then the traffic will queue until HWM is hit, and older messages will be lost."

This reverts commit fe3fb419fe.
This commit is contained in:
Ian Barber
2012-06-12 14:53:57 +01:00
parent a563d494bb
commit 95cbad3841
12 changed files with 3 additions and 232 deletions

View File

@@ -545,13 +545,10 @@ int zmq::socket_base_t::connect (const char *addr_)
icanhasall = true;
// Attach local end of the pipe to the socket object.
if (options.delay_attach_on_connect == 0)
attach_pipe (pipes [0], icanhasall);
attach_pipe (pipes [0], icanhasall);
// Attach remote end of the pipe to the session object later on.
session->attach_pipe (pipes [1]);
if (options.delay_attach_on_connect == 1)
session->onconnect_attach_pipe (pipes [0]);
// Save last endpoint URI
paddr->to_string (options.last_endpoint);