- 04 Jan, 2017 1 commit
-
-
Luca Boccassi authored
Solution: setsockopt returns EINVAL if the connection was closed by the peer after the accept returned a valid socket. This is a valid network error and should not cause an assert. To handle this we have to extract the setsockopt from the stream engine, as there's no clean way to return an error from the constructor. Instead, try to set this option before creating the engine in the callers, and return immediately as if the accept had failed to avoid churn. Do the same for the connect calls by setting the option in open_socket, so that the option for that case is set even before connecting, so there's no possible race condition. Since this has to be done in 4 places (tcp/ipc listener, socks connecter and open_socket) add an utility function in ip.cpp. Fixes #1442
-
- 01 Jan, 2017 1 commit
-
-
Luca Boccassi authored
Solution: check if IPV6_TCLASS is defined so that when Hurd adds support it will just work. Also it will avoid tripping over this on other similar legacy systems.
-
- 30 Nov, 2016 1 commit
-
-
Luca Boccassi authored
Solution: don't use it on Windows. There is a Windows-specific API for ToS, even IPv4 does not work and it's just a silent no-op on that platform.
-
- 14 Nov, 2016 2 commits
-
-
Luca Boccassi authored
Solution: if setsockopt errors out and errno is set to ENOPROTOOPT (or EINVAL on OSX) ignore it and carry on.
-
Saif Hasan authored
Summary: To set `Type Of Service` for IP layer packets ZMQ provides `ZMQ_TOS` socket option. However this only works for v4 sockets. Considering things are moving to IPv6 heavily (especially within enterprise networks), ZMQ should support setting `traffic class` for v6 based on `ZMQ_TOS`. There is a subtle difference between v4 and v6 in terms of the positioning of field but TOS has same meaning in both v4 and v6. Linux provides following APIs for v4/v6 to set TOS field value. ``` // For v4 setsockopt(fd, IPPROTO_IP, IP_TOS, tos, sizeof(tos)); // For v6 setsockopt(fd, IPPROTO_IPV6, IPV6_TCLASS, tos, sizeof(tos)); ``` Test Plan: Make sure Cmake works fine and all tests passes. Imported this change to `OpenR` project and tested on our local testbed. Captured some packets exchanged between PUB/SUB and ROUTER/ROUTER sockets pairs. Verify that `TCLASS` value is set as per expectation. Tasks: #2208
-
- 17 Sep, 2016 1 commit
-
-
Constantin Rack authored
Solution: replace tabes with spaces
-
- 14 May, 2016 1 commit
-
-
evoskuil authored
-
- 18 Feb, 2016 1 commit
-
-
Osiris authored
Solution: Phase I - make precompiled.hpp be first file included in every source file
-
- 28 Jan, 2016 1 commit
-
-
Constantin Rack authored
Solution: update to 2016
-
- 14 Aug, 2015 2 commits
-
-
reza.ebrahimi authored
-
reza.ebrahimi authored
-
- 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
-
- 10 Jun, 2014 1 commit
-
-
Jan Kryl authored
-
- 13 Feb, 2014 1 commit
-
-
Bruno Bigras authored
Fixes #880
-
- 03 Feb, 2014 1 commit
-
-
Pieter Hintjens authored
-
- 02 Jan, 2014 1 commit
-
-
Pieter Hintjens authored
-
- 06 Dec, 2013 1 commit
-
-
Brandon Carpenter authored
Another take on LIBZMQ-568 to allow filtering IPC connections, this time using ZAP. This change is backward compatible. If the ZMQ_ZAP_IPC_CREDS option is set, the user, group, and process IDs of the peer process are appended to the address (separated by colons) of a ZAP request; otherwise, nothing changes. See LIBZMQ-568 and zmq_setsockopt documentation for more information.
-
- 25 Nov, 2013 2 commits
-
-
Richard Newton authored
-
Chris Laws authored
-
- 08 Aug, 2013 1 commit
-
-
Richard Newton authored
-
- 18 Jul, 2013 1 commit
-
-
Martin Hurton authored
The functon returns string representation of peer's IP address. We will need this to update ZAP implementation.
-
- 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.
-
- 02 Jan, 2013 2 commits
-
-
Matt Arsenault authored
-
Matt Arsenault authored
-
- 19 Jun, 2012 1 commit
-
-
jdc8 authored
-
- 16 Jun, 2012 1 commit
-
-
Martin Hurton authored
-
- 12 Jun, 2012 2 commits
-
-
Ian Barber authored
This reverts commit 029d3dfa.
-
Ian Barber authored
This reverts commit 33459029, reversing changes made to 889b0e6f.
-
- 08 Jun, 2012 1 commit
-
-
Hiten P authored
The TCP keepalive tuning code has been moved into the newly added files; this also allows future TCP-specific code to be added into these files, without bloating the IP level code and establishes a known file structure for other IP-based transports. Remember: this is a no-op change, hence no API or functionality was changed as part of this commit.
-
- 07 May, 2012 1 commit
-
-
unknown authored
-
- 13 Apr, 2012 1 commit
-
-
Sergey KHripchenko authored
-
- 06 Apr, 2012 1 commit
-
-
Sergey KHripchenko authored
-
- 05 Apr, 2012 1 commit
-
-
Sergey KHripchenko authored
currently not fully cross-platform work on linux possibly work in *bsd and could be enhanced to work on windows
-
- 01 Nov, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 31 Oct, 2011 1 commit
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 26 Oct, 2011 1 commit
-
-
Mikko Koppanen authored
Signed-off-by:
Mikko Koppanen <mkoppanen@php.net>
-
- 02 Sep, 2011 1 commit
-
-
Martin Sustrik authored
When exec is executed to start a different process image old 0MQ file descriptors could stay open, thus blocking TCP ports and alike. This patch should solve the problem. Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
- 18 Aug, 2011 2 commits
-
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-
Martin Sustrik authored
Signed-off-by:
Martin Sustrik <sustrik@250bpm.com>
-