- 17 Mar, 2013 1 commit
-
-
Pieter Hintjens authored
-
- 31 Jan, 2013 1 commit
-
-
Pieter Hintjens authored
-
- 31 Oct, 2012 1 commit
-
-
Pieter Hintjens authored
-
- 12 Jun, 2012 2 commits
-
-
Ian Barber authored
This patch, salvaged from a trainwreck accidental merge earlier, adds a new sockopt, ZMQ_DELAY_ATTACH_ON_CONNECT which prevents a end point being available to push messages to until it has fully connected, making connect work more like bind. This also applies to reconnecting sockets, which may cause message loss of in-queue messages, so it is sensible to use this in conjunction with a low HWM and potentially an alternative acknowledgement path. Notes on most of the individual commits can be found the repository log.
-
Ian Barber authored
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 fe3fb419.
-
- 01 Jun, 2012 1 commit
-
-
Ian Barber authored
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 patch adds a sockopt ZMQ_DELAY_ATTACH_ON_CONNECT, which if set to 1 will attempt to preempt this behavior. It does this by extending the use of the session_base to include in the outbound as well as the inbound pipe, and only associates the pipe with the socket once it receives the connected callback via a process_attach message. This works, and a test has been added to show so, but may introduce unexpected complications. The shutdown logic in this class has become marginally more awkward because of this, requiring the session to serve as the sink for both pipes if shutdown occurs with a still-connecting pipe in place. It is also possible there could be issues around flushing the messages, but as I could not directly think how to create such an issue I have not written any code with regards to that. The documentation has been updated to reflect the change, but please do check over the code and test and review.
-
- 22 May, 2012 1 commit
-
-
Lourens Naudé authored
-
- 20 May, 2012 1 commit
-
-
Lourens Naudé authored
Rename type zmq_monitor_fn -> zmq_monitor for a more natural callback definition API (zmq_monitor type, monitor.function callback)
-
- 13 May, 2012 1 commit
-
-
KennyTM~ authored
The current ZMQ_MONITOR code does not compile in gcc 4.7, as -pedantic and -Werror are enabled, and ISO C++ doesn't allow casting between normal pointers (void*) and function pointers, as pedantically their size could be different. This caused the library not compilable. This commit workaround the problem by introducing one more indirection, i.e. instead of calling (void *)listener which is an error, we have to use *(void **)&listener which is an undefined behavior :) but works on most platforms Also, `optval_ = monitor` will not set the parameter in getsockopt(), and the extra casting caused the LHS to be an rvalue which again makes the code not compilable. The proper way is to pass a pointer of function pointer and assign with indirection, i.e. `*optval_ = monitor`. Also, fixed an asciidoc error in zmq_getsockopt.txt because the `~~~~` is too long.
-
- 04 May, 2012 1 commit
-
-
Lourens Naudé authored
-
- 27 Apr, 2012 2 commits
-
-
Ian Barber authored
-
Paul Colomiets authored
-
- 09 Apr, 2012 1 commit
-
-
Sergey KHripchenko authored
-
- 06 Apr, 2012 1 commit
-
-
Sergey KHripchenko authored
-
- 20 Mar, 2012 1 commit
-
-
Emmanuel Taurel authored
Add value -1 to the ZMQ_RECONNECT_IVL to disable the reconnection algorithm
-
- 19 Feb, 2012 1 commit
-
-
Ian Barber authored
Update documentation for last endpoint to mention inaddr_any and add a test for IPC last endpoint checking
-
- 15 Feb, 2012 2 commits
-
-
Pieter Hintjens authored
-
Pieter Hintjens authored
-
- 14 Feb, 2012 1 commit
-
-
Ian Barber authored
-
- 18 Dec, 2011 1 commit
-
-
Martin Lucina authored
Signed-off-by:
Martin Lucina <martin@lucina.net>
-
- 16 Nov, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 02 Nov, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 01 Nov, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 06 Oct, 2011 1 commit
-
-
Martin Sustrik authored
This patch is meant to prevent users from running out of memory when using 0MQ in the default configuration. Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 03 Sep, 2011 1 commit
-
-
Pieter Hintjens authored
Signed-off-by:
Pieter Hintjens <ph@imatix.com> Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 08 Aug, 2011 1 commit
-
-
Steven McCoy authored
At this point option exists, is documented and can be set, however, it has no effect. Signed-off-by:
Steven McCoy <steven.mccoy@miru.hk> Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 18 Jul, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 11 Jul, 2011 1 commit
-
-
Martin Sustrik authored
The filtering is now done depending on the socket type. SUB socket filters the messages (end-to-end filtering) while XSUB relies on upstream nodes to do (imprefect) filtering. Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 20 Jun, 2011 2 commits
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
Martin Sustrik authored
So far there was no distinction between message parts used by 0MQ and message parts used by user. Now, the message parts used by 0MQ are marked as 'LABEL'. Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 17 Jun, 2011 1 commit
-
-
Fabien Ninoles authored
- Add doc and tests - Add options and setup - Wait using poll/select Signed-off-by:
Fabien Ninoles <fabien@tzone.org> Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 12 Jun, 2011 1 commit
-
-
Martin Sustrik authored
This option is a performance tweak. In devices XSUB socket filters the messages just to send them to XPUB socket which filters them once more. Setting ZMQ_FILTER option to 0 allows to switch the filtering in XSUB socket off. Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 15 May, 2011 1 commit
-
-
Martin Sustrik authored
Sets the time-to-live field in every multicast packet sent from the socket. Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 11 Apr, 2011 1 commit
-
-
Pieter Hintjens authored
Signed-off-by:
Pieter Hintjens <ph@imatix.com>
-
- 09 Apr, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 24 Mar, 2011 5 commits
-
-
Martin Sustrik authored
These new options allow to control the maximum size of the inbound and outbound message pipe separately. Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-