summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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>
2011-01-14Gerard Toonstra added to the authors fileMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-14Fair queueing of subscriptions added to XPUB socketMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-14XSUB socket has a subscription distributorMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-14'message distribution mechanism' separated from XPUB socketMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-13Make cppcheck not complain about "'operator=' should return something"Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-12Support dynamic generation of C preprocessor definitions for PGM rather than ↵Neale Ferguson
hardcoding them. Signed-off-by: Neale Ferguson <neale@sinenomine.net>
2011-01-11Version bumped to 2.1.1Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-10Size of inproc hwm and swap is sum of peers' hwms and swapsMartin Sustrik
The meat of the patch was contributed by Douglas Creager. Martin Sustrik implemented storing peer options in inproc endpoint repository. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-07Fix pipe writer terminationDhammika Pathirana
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2011-01-07Disable sending messages on SUB socketMartin Sustrik
The ability was inherited from XSUB socket. Now it's properly disabled. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-06resolve "function declaration isn't a prototype"Min Ragan-Kelley
change two declarations in headers to form f(void); instead of f(); which eliminates the warnings when compiling against zeromq Signed-off-by: MinRK <benjaminrk@gmail.com>
2011-01-05Return ETERM from getsockopt(ZMQ_EVETS) if zmq_term() was calledMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-03sunos/gcc3 compilation issue fixedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-12-20Yet one more fix for oversized messages.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-12-20Fix the segfault when over-sized message is rejected.Martin Sustrik
The in_progress message inside of decoder was left uninitialised in such a case. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-12-18Fix passing through CFLAGS/CPPFLAGS/CXXFLAGS when using --enable-debugMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-17unplugged engine tries to manipulate the pollset -- fixedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-12-17fix race condition in session initDhammika Pathirana
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2010-12-15Fixes assertion on pipe.cpp:237 when swap fills up.Mikko Koppanen
Fixes swap::full () functionality Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-15Remove assertions from devicesMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-13add basic uri validationsDhammika Pathirana
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2010-12-13fix overwriting errno on bind failureDhammika Pathirana
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2010-12-09Bob Beaty added to the AUTHORS fileMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-12-09Added Recovery Interval in MillisecondsBob Beaty
For very high-speed message systems, the memory used for recovery can get to be very large. The corrent limitation on that reduction is the ZMQ_RECOVERY_IVL of 1 sec. I added in an additional option ZMQ_RECOVERY_IVL_MSEC, which is the Recovery Interval in milliseconds. If used, this will override the previous one, and allow you to set a sub-second recovery interval. If not set, the default behavior is to use ZMQ_RECOVERY_IVL. Signed-off-by: Bob Beaty <rbeaty@peak6.com>
2010-12-07tar doesn't accept -C flag on solaris while extractingMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-07Fix werror flag store/restoreMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-07Fix visibility on rhel4Mikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-12-07Clarify zmq_send() operation for ZMQ_PUB socketsMartin Lucina
Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-12-06MSVC build fixedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>