- 03 Feb, 2012 5 commits
-
-
skaller authored
We use a distinct context initialisation function to specify all sockets derived therefrom will be thread safe. However the inheritance is done exclusively in the C interface. This is not really correct, but it is chosen to minimise interference with the existing C++ code, including any construct or other calls within the C++ code base. Semantically the C++ code should be unchanged, physically some data structures and extra methods are provided by they're only used from the C binding.
-
skaller authored
1. Reorganise C API socket functions to eliminate bad practice of public functions calling other public functions. This should be done for msg's too but hasn't been in this patch. 2. Reorganise code in C API socket functions so that the socket is cast on one line, the C++ function called on the next with the result retained, then the result is returned. This makes the code much simpler to read and also allows pre- and post- call hooks to be inserted easily. 3. Insert pre- and post- call hooks which set and release a mutex iff the thread_safe flag is on. 4. Add the thread_safe_flag to base_socket_t initialised to false to preserve existing semantics. Add an accessor for the flag, add a mutex, and add lock and unlock functions. Note: as yet no code to actually set the flag.
-
skaller authored
-
Pieter Hintjens authored
LIBZMQ-300: free received subscription messages
-
Daniel Norberg authored
-
- 02 Feb, 2012 7 commits
-
-
Chuck Remes authored
mato: merge patch to close libzmq-268
-
git://git.lucina.net/libzmqChuck Remes authored
-
Chuck Remes authored
mato: merge patch to close libzmq-303
-
git://git.lucina.net/libzmqChuck Remes authored
-
Chuck Remes authored
mato: merge patch to close libzmq-205
-
git://git.lucina.net/libzmqChuck Remes authored
-
Martin Lucina authored
With the introduction of subscription forwarding, the first message sent on a PUB socket using a unidirectional transport (e.g. PGM) is always lost due to the "subscribe to all" being done asynchronously. This patch fixes the problem and also refactors the code to have a single point where the "subscribe to all" is performed. Signed-off-by: Martin Lucina <martin@lucina.net>
-
- 30 Jan, 2012 3 commits
-
-
Pieter Hintjens authored
Reduce memory usage of mtrie.
-
Staffan Gimåker authored
Signed-off-by: Staffan Gimåker <staffan@spotify.com>
-
Martin Lucina authored
-
- 28 Jan, 2012 1 commit
-
-
Pieter Hintjens authored
Support Epoll on cross-compile without runtime test.
-
- 27 Jan, 2012 10 commits
-
-
m authored
-
Pieter Hintjens authored
Updated connector open() doc strings.
-
Pieter Hintjens authored
Fix for LIBZMQ-305
-
Pieter Hintjens authored
Throw away unexpected data received by XPUB sockets, rather than asserting
-
Pieter Hintjens authored
Patch from Mikko Koppanen for #LIBZMQ-301
-
Pieter Hintjens authored
Fix build on old-ass Linux
-
m authored
-
m authored
-
m authored
-
m authored
-
- 26 Jan, 2012 1 commit
-
-
Staffan Gimåker authored
The cause behind the segfault was next.node being deleted but count still being non-zero. Signed-off-by: Staffan Gimåker <staffan@spotify.com>
-
- 19 Jan, 2012 1 commit
-
-
AJ Lewis authored
Add the '-Ae' flag and check for gethrtime() on HPUX Check if CLOCK_MONOTONIC defined before using it - if not, use gethrtime() if it's available, otherwise fall back to the old behavior. Signed-off-by: AJ Lewis <aj.lewis@quantum.com>
-
- 09 Jan, 2012 1 commit
-
-
Staffan Gimåker authored
Fixes LIBZMQ-310. Signed-off-by: Staffan Gimåker <staffan@spotify.com>
-
- 04 Jan, 2012 1 commit
-
-
Martin Lucina authored
This patch fixes the problem described in LIBZMQ-205. The assertion itself is probably caused by previously queued POLLIN events arriving after POLLIN has been disabled on the socket. The following additional bugs have been fixed as part of debugging this problem: - pgm_receiver_t does not flush messages written to the session in all cases which can lead to a stalled reader. Add calls to session->flush () in the appropriate places. - ensure to restart polling when a pending message is flushed in activate_in (). Signed-off-by: Martin Lucina <martin@lucina.net>
-
- 03 Jan, 2012 2 commits
-
-
Staffan Gimåker authored
Signed-off-by: Staffan Gimåker <staffan@spotify.com>
-
Staffan Gimåker authored
Signed-off-by: Staffan Gimåker <staffan@spotify.com>
-
- 25 Dec, 2011 1 commit
-
-
Martin Lucina authored
Opening any PGM socket gives this assertion. The problem is in pgm_sender_t::plug() which is incorrectly testing the return value from session::write(). Signed-off-by: Martin Lucina <martin@lucina.net>
-
- 21 Dec, 2011 1 commit
-
-
Ivo Danihelka authored
Signed-off-by: Ivo Danihelka <ivo@danihelka.net>
-
- 19 Dec, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-
- 18 Dec, 2011 5 commits
-
-
Martin Lucina authored
-
Martin Sustrik authored
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-
Martin Sustrik authored
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-
Martin Lucina authored
Signed-off-by: Martin Lucina <martin@lucina.net>
-
Martin Lucina authored
Signed-off-by: Martin Lucina <martin@lucina.net>
-