summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-03-16reset socket state when identity message cannot be written to xrepJon Dyte
Signed-off-by: Jon Dyte <jon@totient.co.uk>
2011-03-15Dead code removed from named_session.cppMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-14FreeBSD complation error fixedMartin Sustrik
There was an error in pgm_receiver wrt strict aliasing. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-14Remove obsolete assert from pgm_socket.cppMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-12Added missing close method w/ check if socket is already closed.Guido Goldstein
Signed-off-by: Guido Goldstein <github@a-nugget.de>
2011-03-09Windows build fixedMartin Sustrik
Compilation of ip.cpp have failed because EPROTONOSUPPORT was undefined. Including zmq.h should help as the error code is defined there. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-08Different fixed to make OpenVMS port work.Brett Cameron
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-03Bug caused by interaction of REQ/REP routing and HWM fixed.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-03Documentation wrt thread-safety cleaned up.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-02The copyrights in file headers updated.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-02ZMQ_MAXMSGSIZE option addedMartin Sustrik
The new option allows user to guard against peers sending oversized messages. Connection to peer sending oversized message is dropped. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-01Explicit identities bug in inproc transport fixed.Martin Sustrik
The identity of bound socket was not used. Instead, transient identity was generated. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-26Memory leak in PUB/XPUB sockets fixed.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-25Socket with no owner objects is deallocated immediatelyMartin Sustrik
Till now the deallocation of such socket was delayed till zmq_term() thus creating a "leak". Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-24Minor patch to zmq_getsockopt(3) man pageMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-23Incorrect PGM sender/receiver creation fixedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-22Version bumped to 2.2.0Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-22Added explicit error message in case of memory exhaustionMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-21Fixes build on at least CentOS 5Mikko Koppanen
Signed-off-by: Mikko Koppanen <mikko.koppanen@gmail.com>
2011-02-21Fix for memory leak caused by long identitiesMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-21Computation of buffer size for PGM fixed.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-18Fix MSVC and SunStudio builds with OpenPGMMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-18Logging of duplicit identities addedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-17Init object is child of listenerMartin Sustrik
This means that all the handshaking while accepting incoming connection is done exclusively in I/O threads, thus it won't overload the application thread's mailbox. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-17Add delay before reconnectingMartin Sustrik
So far ZMQ_RECONNECT_IVL delay was used only when TCP connect failed. Now it is used even if connect succeeds and the peer closes the connection afterwards. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-15Added note regarding setting sockopt before bind/connectMichael Compton
Signed-off-by: Michael Compton <michael.compton@littleedge.co.uk>
2011-02-13Build problem with OpenPGM and MSVC fixedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-12Fixed win32 issue with WSAStartupPieter Hintjens
- ctx constructor was calling mailbox_t constructor implicitly - moved WSAStartup and WSACleanup to be outside constructor/destructor Signed-off-by: Pieter Hintjens <ph@imatix.com>
2011-02-09reaper added to MSVC buildMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-09Reaper thread waits for commands rather them retrieving them periodicallyMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-09Initial implementation of reaper thread.Martin Sustrik
Reaper thread destroys the socket asynchronously. zmq_term() can be interrupted by a signal (EINTR). zmq_socket() will return ETERM after zmq_term() was called. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-08max_sockets honoured preciselyMartin Sustrik
The internal log socket was subtracted from the number of available sockets. So, if max_sockets was set to 100, you could create only 99 sockets. Fixed. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-08zmq_poll with no fds behaves decentlyMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-07m4_esyscmd_s doesnt seem to be portable across different systemsMikko Koppanen
Signed-off-by: Mikko Koppanen <mikko.koppanen@gmail.com>
2011-02-05test-hwm added to .gitignoreMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-05Fixed autogen.sh warnings on Debian 6 systems.Chris Rempel
Signed-off-by: Chris Rempel <csrl@gmx.com> Please enter the commit message for your changes. Lines starting
2011-02-04operator void* () added to context_t.Thijs Terlouw
Makes it possible to share the context from C++ to C. Signed-off-by: Thijs Terlouw <thijsterlouw@gmail.com>
2011-02-03Don't use RLIMIT_NOFILES in devpoll_t.Martin Sustrik
The patch allows for running 0MQ on Solaris and HP-UX even though ulimit for max number of file descriptors is set to unlimited. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-02-03RLIMIT_NOFILE not used in poll_t anymoreMartin Sustrik
The problem was that RLIMIT_NOFILE can be set to RLIM_INIFINITY (and that appears to be default on AIX) which caused 0MQ to fail. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-30Added WithOpenPGM configuration into MSVC buildsMikko Koppanen
Signed-off-by: Mikko Koppanen <mikko.koppanen@gmail.com>
2011-01-30Added test for HWMMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-01-28Fixed the problem of subscription forwarding and PGM interactionMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-26ZMQ_RECONNECT_IVL_MAX socket option addedThijs Terlouw
It allows for exponential back-off strategy when reconnecting. Signed-off-by: Thijs Terlouw <thijsterlouw@gmail.com>
2011-01-20Do not execute ipc tests under MinGWMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-01-20Remove unnecessary visibility pragmasMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2011-01-20Fix handle connection reset during session initDhammika Pathirana
Patch to handle nmap version probes. Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2011-01-18Fix cppcheck warnings: Prefer prefix ++/-- operators for non-primitive types.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-17Typo fixed in zmq_send(3) man page.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-17Cancel pending timers when decoder for PGM stallsSteven McCoy
Otherwise the timer event can raise an input event causing assertion on unprocessed data. Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2011-01-15Fix MSVC buildMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>