- 30 Jul, 2016 2 commits
-
-
hjp authored
-
Peter J. Holzer authored
Linux provides accept4(2) which will return a socket with FD_CLOEXEC set when called with the SOCK_CLOEXEC flag. So call this when available and fall back to fcntl(..., FD_CLOEXEC) if not.
-
- 09 Jun, 2016 1 commit
-
-
Luca Boccassi authored
Solution: use buffer address instead
-
- 10 Apr, 2016 2 commits
-
-
ipc://*Luca Boccassi authored
Solution: if options.use_fd do not create temporary random directory for ipc://*, since the socket is already created and passed to the library by the user.
-
Luca Boccassi authored
Solution: check for availability in autoconf and cmake, and if not available fall back to random file name rather than random directory.
-
- 14 Mar, 2016 1 commit
-
-
Suudy authored
Updated handling of Unix Domain Sockets, make use of temporary directories, and cleanup afterward. Fix test_term_endpoint handling of optvallen
-
- 28 Feb, 2016 1 commit
-
-
Steven Chamberlain authored
Platforms that have struct ucred, typically declare it in sys/ucred.h
-
- 18 Feb, 2016 1 commit
-
-
Osiris authored
Solution: Phase I - make precompiled.hpp be first file included in every source file
-
- 09 Feb, 2016 1 commit
-
-
Luca Boccassi authored
Solution: rename socket option (and variables and files) from usefd to use_fd.
-
- 08 Feb, 2016 1 commit
-
-
Luca Boccassi authored
Solution: rename socket option (and variables and files) from pre_allocated_fd to usefd.
-
- 04 Feb, 2016 1 commit
-
-
Luca Boccassi authored
Solution: parse the value set by the ZMQ_PRE_ALLOCATED_FD sockopt when creating a new IPC socket and use it if valid. Add new tests/test_pre_allocated_fd_ipc.cpp unit test.
-
- 28 Jan, 2016 1 commit
-
-
Constantin Rack authored
Solution: update to 2016
-
- 02 Jun, 2015 1 commit
-
-
Pieter Hintjens authored
Of course people still "can" distributed the sources under the LGPLv3. However we provide COPYING.LESSER with additional grants. Solution: specify these grants in the header of each source file.
-
- 22 Jan, 2015 1 commit
-
-
Pieter Hintjens authored
Solution: update for 2015 Fixes #1320
-
- 03 Jul, 2014 1 commit
-
-
Rodrigo Mosconi authored
-
- 02 Apr, 2014 1 commit
-
-
Jan Kryl authored
-
- 02 Jan, 2014 1 commit
-
-
Pieter Hintjens authored
-
- 20 Dec, 2013 1 commit
-
-
Pieter Hintjens authored
-
- 19 Dec, 2013 1 commit
-
-
Pieter Hintjens authored
-
- 06 Dec, 2013 1 commit
-
-
Brandon Carpenter authored
Add explicit check for primary group.
-
- 04 Dec, 2013 1 commit
-
-
Brandon Carpenter authored
Adds sets of process (Linux only), user, and group IDs for filtering connections from peer processes over IPC transport. If all of the filter sets are empty, every connection is accepted. Otherwise, credentials for a connecting process are checked against the filter sets and the connection is only accepted if a match is found. This commit is part of LIBZMQ-568 and only adds the filter sets and implements the filter in the IPC accept method. The interface for adding IDs to filter sets are included in a separate commit. IPC accept filtering is supported only on Linux and OS X.
-
- 15 Jun, 2013 1 commit
-
-
xinchuan authored
-
- 17 May, 2013 1 commit
-
-
Pieter Hintjens authored
- we need to switch to PLAIN according to options.mechanism - we need to catch case when both peers are as-server (or neither is) - and to use username/password from options, for client
-
- 14 May, 2013 1 commit
-
-
Martin Hurton authored
This implements protocol handshake. We still need to design and implement 1) API changes so a user can set username and password, and 2) a mechanism for engine to authenticate users.
-
- 12 Mar, 2013 1 commit
-
-
Pieter Hintjens authored
Copyrights had become ads for Sustrik's corporate sponsors, going against the original agreement to share copyrights with the community (that agreement was: one line stating iMatix copyright + one reference to AUTHORS file). The proliferation of corporate ads is also unfair to the many individual authors. I've removed ALL corporate title from the source files so the copyright statements can now be centralized in AUTHORS and source files can be properly updated on an annual basis.
-
- 22 Jan, 2013 1 commit
-
-
Charles McGarvey authored
This accomplishes the same thing as 2e2ef7fd in a potentially cleaner way.
-
- 21 Jan, 2013 1 commit
-
-
Charles McGarvey authored
-
- 17 Nov, 2012 1 commit
-
-
Lourens Naudé authored
Copy monitor specific event endpoints to event messages as the engine etc. can be released at anytime
-
- 30 Sep, 2012 1 commit
-
-
Michel Pelletier authored
Handle insufficient resources on accept() decently If accept() call fails due to insuffient OS resources the new connection is rejected.
-
- 21 Sep, 2012 1 commit
-
-
Lourens Naudé authored
Significantly reworked the monitoring infrastructure with a more granular per socket API and to play well with monitoring endpoints in application threads
-
- 04 Aug, 2012 1 commit
-
-
Lourens Naudé authored
-
- 13 Jul, 2012 1 commit
-
-
Martin Hurton authored
When closing an ipc listener, the library may try to unlink the associated file. When this fails, the underlying socket is not marked as retired and this triggers assertion failure. Fixes issue #397
-
- 11 Jul, 2012 1 commit
-
-
Martin Hurton authored
This also fixes a bug in tcp_connecter and tcp_listener, which generated the event not when they failed to close the socket but when the succeed to close it.
-
- 13 Jun, 2012 1 commit
-
-
Martin Hurton authored
-
- 12 Jun, 2012 2 commits
-
-
Ian Barber authored
This reverts commit dde69fb9.
-
Ian Barber authored
This reverts commit 7b105865, reversing changes made to 33459029.
-
- 11 Jun, 2012 1 commit
-
-
Martin Hurton authored
Once the object has been terminated, it is unsafe for this object to refer to its parent. The bug was responsible for occasional test_shutdown_stress failures.
-
- 05 Jun, 2012 1 commit
-
-
AJ Lewis authored
The socket length variable for getsockname and accept must be an (int *) instead of a (socklen_t *) on HPUX. Signed-off-by:
AJ Lewis <aj.lewis@quantum.com>
-
- 04 May, 2012 1 commit
-
-
Lourens Naudé authored
-
- 21 Apr, 2012 1 commit
-
-
Sergey KHripchenko authored
1. when we call zmq_bind()/zmq_connect() to create endpoint we send ourselfs(through launch_child()) command to process_own(endpoint) (and add it to own_t::owned) in the application thread we could call zmq_unbind() / zmq_disconnect() _BEFORE_ we run process_own() in ZMQ thread and in this situation we will be unable to find it in own_t::owned. in other words own_t::owned.find(endpoint) will not be deleted but it will be deleted from socket_base_t::endpoints. 2. when you zmq_unbind() the lisnening TCP/IPC socket was terminated only in destructor... so the whole ZMQ_LINGER time listening TCP/IPC socket was able to accept() new connections but unable to handle them. this all geting even worse since unfortunately zmq has a bug and '*_listener_t' object not terminated untill the socket's zmq_close(). AT LEAST FOR PUSH SOCKETS. Everything is ok for SUB sockets. Easy to reproduce without my fix: zmq_socket(PUSH) zmq_bind(tcp); // connect to it from PULL socket zmq_unbind(tcp); sleep(forever) // netstat -anp | grep 'tcp listening socket' With my fix you could see that after zmq_unbind(tcp) all previously connected tcp sessions will not be finished untill the zmq_close(socket) regardless of ZMQ_LINGER value. (*_listener_t terminates all owned session_base_t(connect=false) and they call pipe_t::terminate() which in turn should call session_base_t::terminated() but this never happens)
-