summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-11-05signaler renamed to mailboxMartin Sustrik
For historical reasons queue to transfer commands between threads was called 'signaler'. Given that it was used to pass commands rather than signals it was renamed to 'mailbox', see Erlang mailboxes. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-05slots renamed to tidsMartin Sustrik
Threads were so far identified by integers called 'slots'. This patch renames them to more comprehensible 'tid's (thread IDs). Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-04Jacob Rideout added to the AUTGORS file.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-04Fix documentation typosJacob Rideout
Signed-off-by: Jacob Rideout <jacob.rideout@returnpath.net>
2010-11-04Automatically resize signalling socket buffer if fullMartin Lucina
If the socketpair used by signaler_t fills up, this can lead to deadlock. This patch provides partial resolution by attempting to resize SO_SNDBUF on the writer side, and if that fails we shall at least assert rather than hang. I've also refactored the signaler_t code to make the platform-dependent parts clearer and have tested both the MSG_DONTWAIT and standard POSIX path in recv. The Win32 implementation currently does not implement resizing as I'm not convinced that it's safe, but it will also assert like other platforms if signaler_t::send() cannot succeed. The OpenVMS implementation has been carried forward but is untested. Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-11-04Previous FD_STSIZE patch reverted.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-04FD_SETSIZE for internal polling defaults to 1024Martin Sustrik
If, when compiling 0MQ you don't set FD_SETSIZE, it defaults to 1024 rather than to 64. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-04minor typo fixedMartin Sustrik
Devpoll polling mechanism used ZMQ_HAVE_SOLRIS instead of ZMQ_HAVE_SOLARIS in one case. Fixed. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-02HP-UX has no OPEN_MAX definedMartin Sustrik
devpoll_t used this constant to determine how many events to retrieve from the poller in one go. The implementation was changed not to depend on this constant. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-02crypto library is needed on HP-UX to generate UUIDsMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-01Merge branch 'maint'Martin Sustrik
* maint: Add INSTALL to Git, thus making it a normal file
2010-11-01Add INSTALL to Git, thus making it a normal fileMartin Lucina
INSTALL gets added in somewhat magically by automake, or not. Adding it into Git ensures it's always included in the distribution. Signed-off-by: Martin Lucina <mato@kotelna.sk>
2010-11-01select now uses Erase-Remove idiom for retired fdsMikael Helbo Kjaer
Signed-off-by: Mikael Helbo Kjaer <mhk@designtech.dk>
2010-10-30Documentation for zmq_close and zmq_term fixed.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-30Coding style fixed for pgm_socketMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-30Name of "GNU Lesser Public License" corrected.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-29Peter Bourgon added to the AUTHORS fileMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-29Add function to zmq::error_t to access errnumPeter Bourgon
Signed-off-by: Peter Bourgon <peter.bourgon@gmail.com>
2010-10-28Burak Arslan added to the AUTHORS fileMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-28switch to c++-specific headersBurak Arslan
Signed-off-by: Burak Arslan <burak-github@arskom.com.tr>
2010-10-27fix typo, destroy new engineDhammika Pathirana
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2010-10-26drop connection requests with duplicate peer identityDhammika Pathirana
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2010-10-26Build with MSVC2005 fixedMartin Sustrik
To use __rdtsc() function MSVC2005 requires including intrin.h Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-26Update to OpenPGM 5.0.91.Steven McCoy
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2010-10-23Merge branch 'maint'Martin Sustrik
* maint: Fixes build on Linux using Sun Studio compiler
2010-10-23Fixes build on Linux using Sun Studio compilerMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-23handle decoding malformed messagesDhammika Pathirana
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
2010-10-23Changes for MSVC OpenPGM build.Steven McCoy
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2010-10-23Merge branch 'maint'Martin Sustrik
* maint: SunStudio fixed.
2010-10-23SunStudio fixed.Martin Sustrik
With SunStudio's implementation of STL basic_string constructor doesn't accept NULL as a parameter even though size of string is set to zero. Fixed. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-18Minor comment improvement.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-17Minor typo fixed in zmq_getsockopt(3) man page.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-17ZMQ_BACKLOG socket option added.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-17ZMQ_RECONNECT_IVL socket options added.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16Couple of bugs in zmq_poll fixed.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16Implementation of zmq_strerror moved from zmq.cpp to err.cppMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16Bug in low precision clock fixed.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16ZMQ_LINGER socket option added.Martin Sustrik
1. ZMQ_LINGER option can be set/get 2. options are part of own_t base class rather than being declared separately by individual objects 3. Linger option is propagated with "term" command so that the newest value of it is used rather than the stored old one. 4. Session sets the linger timer if needed and terminates as soon as it expires. 5. Corresponding documentation updated. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16Cancel tx_timer_id in pgm_sender_t::out_event().Toralf Wittner
Signed-off-by: Toralf Wittner <toralf.wittner@gmail.com>
2010-10-16Minor code clean-up to keep clang compiler happy.Martin Sustrik
"warning: extra ';' inside a struct or union [-pedantic]" Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16Don't set pedantic to yes if using ICCMikko Koppanen
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-16Obsolete compile-time option removed.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16Merge branch 'maint'Martin Sustrik
* maint: Version number increased. Conflicts: include/zmq.h Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-16Version number increased.Martin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-15Merge branch 'maint'Martin Sustrik
2010-10-15Update NEWS for 2.0.10 releaseMartin Sustrik
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-15Merge branch 'maint'Martin Sustrik
* maint: Fix memory leak under Windows
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>