summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-10-15Fix memory leak under WindowsTaras Shpot
The comment about memory ownership in uuid_t::to_string was misleading as on most platforms the buffer is a field of the object; The string allocated in UuidToString() wasn't properly freed with RpcStringFree() Signed-off-by: Taras Shpot <taras.shpot@eleks.com>
2010-10-15Merge branch 'maint'Martin Lucina
Conflicts: configure.in Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-15maint: Upgrade OpenPGM to 2.1.28~dfsgMartin Lucina
Upgrade OpenPGM to version 2.1.28 for ZeroMQ 2.0.x. Now we also use the DFSG-compliant upstream release tarball. Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-15Merge branch 'maint'Martin Sustrik
* maint: Makefile.am: Add missing files to distribution, improve maintainer-clean configure.in: Extract API version from zmq.h Added bin directory to ignore list. Conflicts: configure.in include/zmq.h
2010-10-15Makefile.am: Add missing files to distribution, improve maintainer-cleanMartin Lucina
Add missing files needed for regenerating configure to the distribution; add MAINTAINERS; improve maintainer-clean to produce a really clean tree. Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-15configure.in: Extract API version from zmq.hMartin Lucina
* Added a version.sh and relevant changes to configure.in to extract the API version from zmq.h at the time autogen.sh is run. * Moved the version macros to be next to zmq_version in zmq.h and improved the comments. * Modified ZMQ_MAKE_VERSION to use (x) instead of plain x when expanding macro parameters. Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-15Minor fix in devpoll.hppMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-15Destructor of poller_base_t made virtual.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-15Cast execute_timers() result to intMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-15Timers correctly canceled by PGM engines on shutdown.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-15Fixes build on Linux using Sun Studio compilerMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-15ICC related qualifier fixMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-14zmq::clock_t : return correct value in rdtsc() on solarisMartin Pales
Function clock_t::rdtsc() now returns correct value when compiled with sunstudio 12 compiler. Signed-off-by: Martin Pales <m.pales@gmail.com>
2010-10-14Added bin directory to ignore list.Gonzalo Diethelm
2010-10-14To insert to associateive STL containers value_type used instead of make_pairMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-14zmq::poller_base_t : workaround for sunstudio compiler in add_timer()Martin Pales
A minor workaround to resolve compilation error with sunstudio compiler, which does not yet support member templates for std::multimap. Signed-off-by: Martin Pales <m.pales@gmail.com>
2010-10-14Safety measure in zmq_msg_close implementedMartin Sustrik
zmq_msg_close now empties the message on zmq_msg_close, thus not leaving random data in the structure, that may be mistaken for a valid message. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-14zmq_poll man page fixed to reflect the precise timeout semantics.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-14zmq::devpoll_t : correct a typo in loop()Martin Pales
A minor typo correction to resolve compilation error on Solaris. Signed-off-by: Martin Pales <m.pales@gmail.com>
2010-10-13Precise timouts in zmq_poll implementedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-13Clean-up of the code related to attaching/detaching engines to sessions.Martin Sustrik
Session base class now handles the engine events exclusively. It notifies derived session types using dedicated "attached" and "detached" events. Couple of bugs was fixed along the way. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-13Merge branch 'maint'Martin Sustrik
* maint: Add support for RHEL6 in the spec file
2010-10-13Add support for RHEL6 in the spec fileSebastian Otaegui
Signed-off-by: Sebastian Otaegui <feniix@gmail.com>
2010-10-12Avoid duplicate creation of pipes for a single sessionMartin Sustrik
When a session is being closed down its inbound and outbound pipe pointers are set to null. If (re) connection happens at that time, session may try to reinistantiate the pipes which is wrong. This patch allows session to attach pipes only once in its lifetime. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-12Drop PGM parameters to 100mb friendly range.Steven McCoy
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2010-10-11Fix assertion in PGM transports on cancel_timerSteven McCoy
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2010-10-11Merge branch 'maint'Martin Sustrik
* maint: configure.in: Do not patch libtool rpath handling Fixing the Red Hat packaging
2010-10-11configure.in: Do not patch libtool rpath handlingMartin Lucina
For historic reasons (mainly compatbility with really old libtool), configure was patching libtool to not use rpath in binaries. This breaks (among other things) correct operation of "make check" since the test binaries may not be run with the correct shared library version. Current best practice as seen e.g. at http://wiki.debian.org/RpathIssue suggests that this is no longer an issue, so I'm removing the code that patches libtool. Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-11Fixing the Red Hat packagingMartin Sustrik
When adding ZMQ_VERSION macros, I incorrectly removed the PACKAGE_VERSION macro. Adding it back. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-11Reverting commit 1d431190f50c86f62460Martin Sustrik
The patch was supposed to check that pipe writer sends messages in atomic fashion. However, it prevented the user to read half of a message and close the socket. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-10When XREP silently drops message, it does not empty it -- fixedMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-09Execute the timers before pollset initialisation.Christian Gudrian
Since executing the timers might modify the source pollsets we have to defer the initialisation until after the timers have executed. Signed-off-by: Christian Gudrian <christian.gudrian@fluidon.com>
2010-10-09Merge branch 'maint'Martin Sustrik
* maint: Version macros added Conflicts: builds/msvc/platform.hpp Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-09Version macros addedMartin Sustrik
Macro ZMQ_VERSION represents the current version of 0MQ Macro ZMQ_MAKE_VERSION(major,minor,patch) allows to create a representation of the specified version. The versions can be compared using simple <, >, ==, etc. operators. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-08Fix missing platform.hpp in zmq_connecter.cppMartin Lucina
Missed testing on Win32 Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-08More cleanup of session termination process.Martin Sustrik
Fix in termination of session attached to a REP socket. Several fixes of session termination in case of disconnection. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-08Scalability improvements for large amounts of connectionsMartin Lucina
Add signaler_sndbuf_size option to config.hpp which allows the user to increase the size of the send buffer used by the signalling socketpair. Implement random backoff for reconnection attempts using a primitive pseudo-random generation to prevent reconnection storms. Add wait_before_connect option to config.hpp to allow the user to enable random delay even on initial connect. Default is false for low latency. Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-10-08Clean-up of session termination processMartin Sustrik
Specifically, shutdown of child objects is initiated *before* termination handshake with socket object. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-04configure.in: OpenPGM no longer requires pkg-configMartin Lucina
2010-10-04configure.in: Add amd64 to OpenPGM supported platformsSteven McCoy
2010-10-02make sure that reader does not terminate in the middle of a multipart messageNir Soffer
2010-10-01issue 92 -- Assertion failed: inpipe && outpipe (pair.cpp:86) -- fixedMartin Sustrik
2010-10-01stress test for shutdown process addedMartin Sustrik
2010-10-01Merge branch 'master' of github.com:zeromq/zeromq2Martin Sustrik
2010-10-01assert when xrep socket gets reconnected in the middle of the shutdown -- fixedMartin Sustrik
2010-09-30zmq_poll(): Fix busy-loop if timeout is zeroMartin Lucina
Fix a case where zmq_poll() (poll-based version) could go off into a busy-loop if no revents are returned and the timeout passed in is zero.
2010-09-30Merge branch 'maint'Martin Sustrik
* maint: zmq_msg_move called on uninitialised message in xrep_t::xrecv -- fixed
2010-09-30zmq_msg_move called on uninitialised message in xrep_t::xrecv -- fixedMax Wolf
2010-09-30fix in XREP's fair queueing mechanismMartin Sustrik
2010-09-30minor whitespace fixMartin Sustrik