Commits on Jul 17, 2011
  1. @sustrik

    GENERIC socket type and COMMAND flag added

    GENERIC allows to use 0MQ as a dumb networking framework.
    It provides user with connect/disconnect notifications.
    Also, each inbound message is labeled by ID of the connection
    it originated from. Outbound messages should be labeled by
    the ID of the connection to send them to.
    
    To distinguish connect/disconnect notifications from common
    messages, COMMAND flag was introduced.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 17, 2011
Commits on Jul 15, 2011
  1. @sustrik

    ZMQ_IDENTITY socket option removed

    This patch simplifies the whole codebase significantly,
    including dropping depedency on libuuid.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 15, 2011
  2. @sustrik

    non-immediate_connect functionality removed

    It was used only by ROUTER socket. After its removal it became
    obsolete.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 15, 2011
  3. @sustrik

    Debian packaging removed

    It is now maintained as a separate project.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 15, 2011
  4. @sustrik

    ROUTER and DEALER sockets removed

    To be replaced by new generic socket type
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 15, 2011
  5. @sustrik

    Version number bumped to 4.0.0

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 15, 2011
Commits on Jul 12, 2011
  1. @sustrik

    Bug with setting options on SUB socket fixed

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 12, 2011
Commits on Jul 11, 2011
  1. @sustrik

    zmq_bind(3) and zmq_connect(3) describe EINVAL error

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 11, 2011
  2. @sustrik

    Subscription forwarding test added

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 11, 2011
  3. @sustrik

    REQ/REP drop test extended

    The test now checks whether replies are dropped when reply pipe
    is overflowed.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 11, 2011
  4. @sustrik

    PGM transport reconciled with subscription forwarding

    As PGM is not capable of passing subscriptions upstream,
    subscriptions are ignored at sub side and engine subscribes
    for all messages on pub side.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 11, 2011
  5. @sustrik

    ZMQ_FILTER option removed

    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>
    sustrik committed Jul 11, 2011
  6. @sustrik

    Man pages for send & recv function brought up to date

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 11, 2011
  7. @sustrik

    Experimental code from zmq_init_t removed.

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 11, 2011
Commits on Jul 9, 2011
  1. @sustrik

    Drop outbound messages in XREP socket when SNDHWM is reached

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 9, 2011
Commits on Jul 8, 2011
  1. @sustrik

    VSM data are aligned to 32/64 bit boundary

    Till now the VSM buffer was aligned to 16 bit boundary
    which could possibly cause problems on RISC architectures
    when accessing the message data in unsafe manner.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 8, 2011
Commits on Jul 4, 2011
  1. @sustrik

    License text in autogen.sh fixed

    autogen.sh incorrectly referred to the license as GPL.
    Changed to LGPL.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 4, 2011
Commits on Jul 3, 2011
  1. @sustrik

    Build system checks for presence of eventfd.h header

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 3, 2011
  2. @sustrik
  3. @sustrik

    Race condition in eventfd signaler fixed

    recv function on eventfd signaler could accidentally
    grab two signals instead of one. Fixed.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 3, 2011
  4. @sustrik

    eventfd implementation of the signaler

    Eventfd (on Linux) is more efficient that socketpair
    for passing simple signals.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 3, 2011
  5. @sustrik

    Fix MSVC build

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 3, 2011
  6. @sustrik

    Inproc tests need no I/O threads

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 3, 2011
  7. @sustrik

    Command are now stored in ypipes instead of in socketpairs

    Storing commands in OS socket buffers caused whole lot of
    problems when free space in the buffer ran out. This patch
    stores commands in ypipes instead and uses socketpair just
    to signal the other thread, ie. at most one byte is stored
    in the socketpair at any single instant.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jul 3, 2011
Commits on Jun 29, 2011
  1. @sustrik

    Testing for errors from pthread_* functions fixed

    pthread_* functions return the error number rather than
    setting errno. This was not accounter for till now.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 30, 2011
  2. @thompsa @sustrik

    Use strrchr to ensure we split off the last colon for the service port

    IPv6 addresses have colons and will produce invalid data for the getaddrinfo lookup.
    
    Signed-off-by: Andrew Thompson <andy@fud.org.nz>
    thompsa committed with sustrik Jun 29, 2011
Commits on Jun 28, 2011
  1. @sustrik

    Packaging for MSVC build fixed

    MSVC project files for inproc_lat and inproc_thr were not
    packaged during make dist phase.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 28, 2011
Commits on Jun 27, 2011
  1. @sustrik

    Rename i_inout to i_engine_sink

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 27, 2011
Commits on Jun 26, 2011
  1. @moondog1 @sustrik

    Typo in zmq_msg_size(3) fixed

    Signed-off-by: Carl Clemens <carlclemens1@yahoo.com>
    moondog1 committed with sustrik Jun 26, 2011
Commits on Jun 23, 2011
  1. @sustrik

    Fix MSVC build

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 23, 2011
  2. @sustrik

    Outstanding requests dropped when requester dies (issue 190)

    So far the requests in req/rep pattern were delivered to and processed
    by worker even though the original requester was dead. Thus,
    the worker processing replies with noone to deliver results to.
    This optimisation drops requests in two situations:
    
    1. Queued inbound requests in XREP socket when peer disconnects.
    2. Queued outbound requests in XREQ when socket is closed.
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 23, 2011
Commits on Jun 22, 2011
  1. @sustrik

    O(1) fair-queueing in XREP implemented

    Up to now the complexity of fair-queueing in XREP was O(n).
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 22, 2011
  2. @sustrik

    New wire format for REQ/REP pattern

    This patch introduces two changes:
    1. 32-bit ID is used to identify the peer instead of UUID
    2. REQ socket seeds the label stack with unique 32-bit request ID
       It also drops any replies with non-matching request ID
    
    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 22, 2011
Commits on Jun 21, 2011
  1. @sustrik

    Unspecified error code from mailbox_t::recv on Win32 fixed

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 21, 2011
Commits on Jun 20, 2011
  1. @sustrik

    Introduce ZMQ_ROUTER and ZMQ_DEALER sockets

    Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
    sustrik committed Jun 20, 2011