0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-22 07:29:31 +08:00

2072 Commits

Author SHA1 Message Date
Martin Sustrik
7f01e9970d stopwatch returned to libzmq 2010-06-17 16:51:53 +02:00
Martin Hurton
4777fe4010 pipe: fix bug in rollback() method
The msgs_written variable keeps track how many complete
messages have been written so far. The rollback operation drops all
fragments of the last incomplete message so it shouldn't
change this variable at all.
2010-06-17 13:00:30 +02:00
Martin Sustrik
9151de3895 generate identity for transient inproc connections 2010-06-17 11:01:18 +02:00
Brian Buchanan
ac90b7e0ba issue 35 - ZMQ_RCVMORE sometimes erroneously returns false 2010-06-11 08:03:34 +02:00
Martin Sustrik
5ee355d188 if connect asserts, exact error is reported 2010-06-11 07:02:36 +02:00
Martin Sustrik
27877d73ea EHOSTUNREACH is acceptable outcome from connect 2010-06-11 06:55:30 +02:00
Piotr Trojanek
c818b14bbd clearing thread info structure 2010-06-10 12:57:42 +02:00
Martin Sustrik
74a3907be2 couple of ICC warnings fixed 2010-06-10 12:36:27 +02:00
Martin Sustrik
76e0153d4f issue 33 - missing virtual destructors 2010-06-10 07:21:05 +02:00
Martin Sustrik
d329c55da9 issue 31 - Assertion failed: err == ECONNREFUSED || err == ETIMEDOUT (tcp_connecter.cpp:296) 2010-06-10 07:12:00 +02:00
Martin Sustrik
604f7475ec issue 32 - poll_t poller broken 2010-06-09 17:49:08 +02:00
Piotr Trojanek
751b60a18d extra ';' inside a struct or union -- clang warnings fixed 2010-06-09 17:06:32 +02:00
Martin Sustrik
240fc33f65 minor comment clarification 2010-06-07 20:23:48 +02:00
Martin Lucina
94dfe1368a Fix MINGW build
Mingw seems to define NOMINMAX, so don't redefine it if already defined
2010-06-04 17:02:16 +02:00
Martin Sustrik
cf048bb1f8 platform.hpp for MSVC contains only very basic stuff 2010-06-04 16:29:36 +02:00
Martin Lucina
621d7415b3 Fix Solaris/NetBSD breakage in atomic_ptr.hpp 2010-06-04 15:35:14 +02:00
Martin Sustrik
67ca7dcbe6 obsolete API elements removed - this commit breaks backward compatibility 2010-06-04 15:24:06 +02:00
Martin Lucina
606c77368c Move perf helper functions to perf/helpers.cpp 2010-06-04 14:48:49 +02:00
Martin Sustrik
be6019abd1 issue 28. - SNDMORE/ RCVMORE is dropping every other message 2010-05-31 09:28:36 +02:00
Martin Sustrik
2e9be56a40 memory leak in REQ socket fixed 2010-05-31 06:17:58 +02:00
Martin Sustrik
04fcd4d55b memory leak in REP socket fixed 2010-05-31 06:11:20 +02:00
Martin Sustrik
8408ae066d LWM is computed rather than explicitly specified by user 2010-05-25 15:03:57 +02:00
Martin Sustrik
89783c37d2 incomplete messages can be stored in ypipe 2010-05-19 06:31:57 +02:00
Steven McCoy
6705a3d580 some more sanity checks in pgm_socket 2010-05-13 12:43:58 +02:00
Martin Sustrik
ff9d398555 Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-05-13 12:41:39 +02:00
Steven McCoy
56262d7ba7 some more sanity checks in pgm_socket 2010-05-13 12:41:20 +02:00
Martin Lucina
f6c1c97242 Merge branch 'master' of github.com:sustrik/zeromq2 2010-05-12 16:49:49 +02:00
Martin Lucina
52ef3f3f2c Revert commit 7cb076e, atomic ops cleanup
Reverted to using atomic.h on NetBSD
Removed GNU builtins (see http://lists.zeromq.org/pipermail/zeromq-dev/2010-May/003485.html)
Removed SPARC native atomic ops as they are untested and have been commented out for years
Add "memory" to asm clobber for X86 atomic_counter::sub()
2010-05-12 16:46:59 +02:00
Martin Sustrik
8e5ac100c9 Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-05-12 12:45:38 +02:00
Brett Cameron
714a8d50a0 fixes for OpenVMS 2010-05-12 12:45:12 +02:00
Martin Lucina
9d16a415cb OpenPGM build flags cleanup
Removed various exotic -Wxxx flags in the OpenPGM build to get us to what is actually
required and reasonable; added in -fno-strict-aliasing since OpenPGM generates lots
of warnings about dereferencing typed-punned pointers; removed the OpenPGM extra flags
from libzmq_la_CXXFLAGS and left them only in libzmq_la_CFLAGS so that our code
is not built with the OpenPGM extra flags.
2010-05-10 16:32:10 +02:00
Martin Lucina
2cf9f04a46 Update OpenPGM to version 2.1.26 2010-05-10 16:26:09 +02:00
Martin Sustrik
a25414e55c Fix in zmq_poll (Windows version) 2010-05-09 16:59:15 +02:00
Martin Sustrik
4a3b857c4c commands not processed immediatelly in some scenarios; fixed 2010-05-07 11:08:50 +02:00
Martin Sustrik
f60d891b23 Issue 23. zmq_init() crashes on illegal numbers 2010-05-06 10:33:01 +02:00
Martin Sustrik
835e893e54 dispatcher_t class renamed to ctx_t 2010-05-05 14:24:54 +02:00
Martin Sustrik
10f5334f28 Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-05-05 13:03:56 +02:00
Martin Sustrik
44dd005ff0 number of application threads to use 0MQ sockets is unlimited; app_threads parameter in zmq_init is unused and obsolete 2010-05-05 13:03:26 +02:00
Martin Sustrik
3f5465ada1 Windows port fixed 2010-05-04 10:37:10 +02:00
Martin Sustrik
235ed3a3dc signaler transports commands per se rather than one-bit signals 2010-05-04 10:22:16 +02:00
Martin Sustrik
8b9bd05726 thread ID and dispatcher made private in object_t 2010-05-03 16:21:36 +02:00
Martin Sustrik
84e0c7991a queue device fixed 2010-05-02 20:59:07 +02:00
Martin Sustrik
4a6bac1dea Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-04-30 04:54:10 +02:00
Martin Sustrik
acfd0f8ca2 prefix in XREP recv'd message misses MORE flag 2010-04-30 04:53:41 +02:00
Martin Sustrik
beb4da3c28 windows port fixed 2010-04-29 20:53:46 +02:00
Martin Sustrik
ae93ed318a signaler rewritten in such a way that any number (>64) of threads can be used 2010-04-29 20:34:48 +02:00
Martin Sustrik
1ffc6dd41f eventfd-style signaling removed 2010-04-29 18:03:54 +02:00
Martin Sustrik
37128b7b1a fd_signaler_t renamed to signaler_t 2010-04-29 17:31:57 +02:00
Martin Sustrik
c193fd1466 lock-free polling removed; ZMQ_POLL flag removed 2010-04-29 17:20:23 +02:00
Steven McCoy
7cb076e56a Defer NetBSD atomic ops to GCC builtins. Revert Sun atomic ops #define. 2010-04-29 11:36:13 +02:00
Martin Sustrik
ad6fa9d0d4 initial version of multi-hop REQ/REP 2010-04-27 17:36:00 +02:00
Martin Sustrik
beffee92a8 P2P renamed to PAIR 2010-04-26 16:51:05 +02:00
Martin Sustrik
1c33941be9 Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-04-15 07:32:49 +02:00
Martin Sustrik
ea18d30c20 atomic_ptr fix of Win64 2010-04-15 07:32:25 +02:00
Martin Lucina
0024d29076 Build fixes for cross compiling and Win32 2010-04-12 16:49:13 +02:00
Martin Sustrik
7668e7976d zmq_poll returns ETERM in case of context termination 2010-04-12 09:57:34 +02:00
Martin Sustrik
fba28c7c0c issue 1 - Change zmq_term semantics 2010-04-11 16:36:27 +02:00
Martin Sustrik
00cf3ceb8d multi-part message functionality available via ZMQ_SNDMORE and ZMQ_RCVMORE 2010-04-11 10:26:47 +02:00
Martin Sustrik
c214a24f06 fix for Sun C++ 5.8 2010-04-10 16:27:07 +02:00
Martin Lucina
770aedbd09 Build fixes for Solaris and non-GNU compilers
Compiling C++ code with -D_POSIX_SOURCE on Solaris is unsupported, so remove it.
Isolate GCC-isms inside checks that we are actually using GCC/G++.
Only check for -lstdc++ when on GCC and doing static linking.
2010-04-10 16:18:34 +02:00
Martin Sustrik
716f4ac871 zmq_getsockopt function added 2010-04-09 13:04:15 +02:00
Martin Sustrik
027bb1d2a7 issue 10 - zmq_strerror problem on Windows 2010-04-08 19:20:42 +02:00
Martin Sustrik
5cd9f74a70 few fixed related to multi-part messages in REP socket 2010-04-08 19:04:32 +02:00
Martin Sustrik
77cbd18e9c issue 11 - Assertion failed: it != peers.end () (pgm_receiver.cpp:161) 2010-04-08 11:07:22 +02:00
Martin Sustrik
38e9103e0c issue 13 (Assertion failed: load.get () == 0 (epoll.cpp:49)) fixed 2010-04-08 08:33:38 +02:00
Martin Sustrik
745db9c574 unitialised member in seesion_t class - fixed 2010-04-07 11:54:09 +02:00
Jon Dyte
edfd05df8e devices can be created via API 2010-04-07 08:20:01 +02:00
Martin Hurton
37fd1a77a6 Handle full-pipe for REP sockets more gracefully 2010-03-31 16:08:43 +02:00
Martin Sustrik
2f219d7c28 ZMQ_TBC renamed to ZMQ_MORE 2010-03-27 21:25:40 +01:00
Martin Sustrik
842b4dd2e4 muti-part message functionality available via API 2010-03-27 14:57:56 +01:00
Martin Sustrik
8d8e0857be as advertised, zmq_flush and ZMQ_NOFLUSH were removed 2010-03-27 14:50:35 +01:00
Martin Sustrik
06538fc117 multi-part messages work with REQ/REP sockets 2010-03-27 14:24:57 +01:00
Martin Sustrik
bbfac783f9 multi-part message work with UPSTREAM/DOWNSTREAM 2010-03-27 09:43:49 +01:00
Martin Sustrik
ed291b0251 multi-part messages work with PUB/SUB 2010-03-27 09:24:38 +01:00
Martin Sustrik
0a53ff7b9f Merge branch 'master' of git@github.com:sustrik/zeromq2 2010-03-20 19:51:29 +01:00
Martin Sustrik
93bdb792a9 PUB socket was blocking occassionally - fixed 2010-03-20 19:50:36 +01:00
Martin Sustrik
f031677100 rollback of half-processed messages in case of disconnection 2010-03-20 15:04:30 +01:00
Martin Sustrik
dfdaff5eba XREP-style prefixing/trimming messages removed 2010-03-20 10:58:59 +01:00
Martin Sustrik
cbaf10978a fixes for building with Sun CC 2010-03-19 09:14:26 +01:00
Martin Sustrik
61ad236e95 ZMQ_NOFLUSH and zmq_flush obsoleted 2010-03-13 14:40:10 +01:00
Martin Sustrik
c42343d3f0 pipe_t::rollback removes only unfinished message from the pipe rather than all unflushed messages 2010-03-13 12:34:55 +01:00
Martin Sustrik
66b67fbdf2 devices are built unconditionally 2010-03-12 18:58:29 +01:00
Martin Hurton
6badd204d5 Implement flow control for ZMQ_REP sockets 2010-03-12 11:07:39 +01:00
Martin Hurton
923609b092 Implement flow control for ZMQ_REQ sockets 2010-03-12 11:07:39 +01:00
Martin Hurton
42e575cb6b Implement flow control fox ZMQ_XREP sockets 2010-03-12 11:07:39 +01:00
Martin Hurton
e34184acc3 Implement flow control for ZMQ_XREQ sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
06d7a44737 Implement flow control for ZMQ_PUB sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
f9c84a1a68 Implement flow control for ZMQ_DOWNSTREAM sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
5d4f6b18cd Implement flow control for ZMQ_P2P sockets 2010-03-12 11:07:38 +01:00
Martin Hurton
f9521c6b6a PGM: implement flow control 2010-03-12 11:07:38 +01:00
Martin Hurton
61ee6fae53 Implement flow control
This commit introduces the necessary changes necessary
for implementing flow control. None of the socket types
implements the flow control yet. The code will crash when
the flow control is enabled and the thw lwm is reached.

The following commits will add flow-control support for
individual socket types.
2010-03-12 11:07:38 +01:00
Martin Lucina
27e2d08449 Restructure language bindings
C and C++ headers moved from bindings/ to include/, bindings/ removed
--with-c and --with-cpp options to configure removed, C and C++ now built
and installed by default
2010-03-11 20:33:27 +01:00
Martin Sustrik
d790940fd0 udp transport renamed to epgm 2010-03-09 18:14:49 +01:00
Martin Sustrik
5a776f5597 PGM late joiners would start receiving a complete message rather than a message part 2010-03-09 17:34:28 +01:00
Martin Sustrik
0f891e091c message flags from the wire are written to zmq_msg_t and vice versa 2010-03-09 17:24:42 +01:00
Martin Sustrik
531c6af0d4 message flags added to zmq_msg_t strcuture 2010-03-09 16:56:53 +01:00
Martin Sustrik
96ccc1c5fc 'flags' fields added to the wire format 2010-03-09 15:10:44 +01:00
Martin Sustrik
e04e2cdbba rollback functionality added to pipe 2010-03-09 08:43:20 +01:00
Martin Sustrik
9481c69b0f problem with NIC name resolution on OSX fixed 2010-03-06 16:32:19 +01:00
Martin Lucina
26b0aea24f Win32 build fixes 2010-03-03 17:01:08 +01:00