sigiesec
206c832167
Problem: in case of exhausted resources on creation of a context, assertions are triggered
...
Solution: signal error to caller, and apply appropriate cleanup
2018-01-31 20:53:06 +01:00
sigiesec
f9d7eea6f9
Problem: code duplication
...
Solution: unified Windows & non-Windows code further
2017-10-26 11:05:39 +02:00
sigiesec
e7817ad38d
Problem: code duplication
...
Solution: reduced code duplication by introducing local variables and
new function trigger_events
2017-10-26 10:47:05 +02:00
sigiesec
37914d1be2
Problem: get_fd_family call is expensive and called frequently for the
...
same fds
Solution: cache results of get_fd_family
2017-10-26 09:46:11 +02:00
sigiesec
cd32603c0e
Problem: wsa_events are initialized/destroyed within every loop
...
iteration even if not used
Solution: Move wsa_events closer to usage
2017-10-25 18:30:03 +02:00
sigiesec
eb8105cde1
Problem: assertion failure in select.cpp:111 under Windows
...
Solution: handle case when get_fd_family fails
2017-09-01 11:55:31 +02:00
sigiesec
c3c2515542
Problem: code duplication within zmq::select_t::rm_fd
...
Solution: extract find_fd_entry_by_handle from rm_fd
2017-08-21 14:36:50 +02:00
bjovke
dc7bbe35b4
Problem: FD set copying on Windows still not optimal on some places. Solution: Improved memcpy() of FD sets for Windows builds.
2017-04-14 16:31:05 +02:00
Luca Boccassi
121c9d16f5
Problem: select.cpp/hpp build fails with reorder error
...
Solution: initialise class variables in the same order they are
declared
2016-11-24 13:07:47 +00:00
Ilya Kulakov
06614a394d
Fix fd_entry may reference invalid object.
...
fd_entries (std::vector) can reallocate underlying storage
which will render reference invalid.
2016-09-24 21:17:32 -07:00
Gennady Makovetski
2e3888dd45
Problem: Pub socket crashes on client disconnect. family_entry.fd_entries [i] is modified in zmq::select_t::rm_fd()
...
Solution: do not copy family_entry.fd_entries [i]
2016-09-23 15:26:36 +03:00
Constantin Rack
022cf2aeaa
Problem: source code contains tabs
...
Solution: replace tabes with spaces
2016-09-17 08:44:00 +02:00
Luca Boccassi
a343059aad
Merge pull request #2041 from packetstash/select-fix-rebased
...
Copy instead of reference to a vector that gets reallocated.
2016-06-16 22:48:36 +01:00
Douglas Cuthbertson
4019112a82
Copy instead of reference to a vector that gets reallocated.
2016-06-16 17:34:22 -04:00
Yann Diorcet
9835e18f64
Fix compilation with mingw64 using autotools
2016-06-01 15:07:16 +02:00
evoskuil
2b798e486a
Problem: name conflicts from windows.h, draft API declared in pch.
2016-05-13 20:41:26 -07:00
hitstergtd
b2d0ab18f2
Problem: trailing whitespace in code
...
Solution: fix them
2016-04-25 12:18:46 +01:00
hitstergtd
a4b426b18e
Problem: typos/trailing spaces in code comments
...
Solution: fix them
2016-04-25 11:16:26 +01:00
Doron Somech
87e455f59b
Fix UDP failing on windows
2016-04-21 14:00:02 +03:00
Mário Kašuba
75579fe7d9
Added comment to sockaddr_storage
2016-03-19 14:49:22 +01:00
Mário Kašuba
e38166cc1b
Use sockaddr_storage instead of sockaddr to support IPv6 addresses
2016-03-19 14:37:10 +01:00
Osiris
4a5af9d58b
Problem: Precompiled headers not being used
...
Solution: Phase I - make precompiled.hpp be first file included in every source file
2016-02-18 10:56:52 -06:00
Michael
56efddd182
remove c++11 requirement and -Werror=sign-compare
...
used static_cast<signed int> around WSA_WAIT_FAILED as it is an unsigned implicitly defined as (0xFFFFFFFF ion winbase.h) and causes a comparison error.
removed use of c++11 style initialiser list for 'sockaddr addr { 0 }' and changed it to 'sockaddr addr = { 0 }'
2016-02-06 22:55:24 +11:00
Pieter Hintjens
3d9984efe2
Merge pull request #1764 from GreatFruitOmsk/master
...
Make VMCI work on Windows
2016-02-03 16:21:53 +01:00
Ilya Kulakov
538e5d4742
Make VMCI to work on Windows.
...
select was improved to support multiple service providers on Windows.
it should be slightly faster because of optimized iteration
over selected sockets.
2016-02-03 19:12:11 +06:00
Constantin Rack
a539b0c6e8
Problem: copyright year is still 2015
...
Solution: update to 2016
2016-01-28 15:07:31 +01:00
Pieter Hintjens
8620c3e032
Problem: source file headers are somewhat confusing about LGPLv3
...
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.
2015-06-02 22:33:55 +02:00
Pieter Hintjens
94d9a4ffdf
Problem: copyright statements are out of date
...
Solution: update for 2015
Fixes #1320
2015-01-22 10:32:37 +01:00
Huu Nguyen
5642366f10
Fix non-constant-expression narrowing
...
For OS X, the microseconds field is implemented as an int type. The implicit narrowing in the initializer list throws a compiler error for some compilers with C++11 support turned on. The specific error message is: "error: non-constant-expression cannot be narrowed from type 'long' to '__darwin_suseconds_t' (aka 'int') in initializer list [-Wc++11-narrowing]".
Tested on Clang 5.1.0 and Mac OS X 10.9.4.
2014-09-16 14:34:11 -07:00
Joel Lauener
219310b4f0
Thread scheduling parameters: Use ZMQ context options instead of
...
environment variables.
2014-07-02 14:41:21 +02:00
Pieter Hintjens
b3b9e046ee
Updated copyright statements for 2014
2014-01-02 12:00:57 +01:00
Richard Newton
7a510b4b60
Fix formatting.
2013-11-07 17:50:29 +00:00
Richard Newton
568cc1adaa
Get maximum number of sockets it can handle from poller_t
2013-11-07 17:46:19 +00:00
Pieter Hintjens
f0f16505e5
Removed corporate advertisements from source file headers
...
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.
2013-03-12 13:24:57 +01:00
Martin Hurton
9013ee0d52
Minor code cleanup
2012-11-13 13:06:29 +01:00
Martin Sustrik
8e21d64c97
Copyright dates adjusted to reflect reality
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-11-01 18:06:11 +01:00
Martin Sustrik
ac7717b7b3
250bpm copyrights added
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-10-31 16:20:30 +01:00
Martin Sustrik
f716b571ba
Only one polling mechanism is compiled
...
Till now wrappers for all the polling mechanisms available on
the given platform were compiled, although only one of them
was used. This patch compiles just the used one. This can
make libzmq binary more concise.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-07-24 18:13:29 +02:00
Steven McCoy
9b795de4af
Refactor Windows versioning and WinSock usage.Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2011-06-18 20:44:03 +02:00
Martin Sustrik
c7fb5c54b6
Reverting previous commit that broke MSVC2010 build
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-06-13 07:53:22 +02:00
Steven McCoy
b164023cca
Fix scope on Windows includes.
...
Fix windows.h included before winsock2.h.
Remove definition of _WINSOCKAPI_.
Signed-off-by: Steven McCoy <steven.mccoy@miru.hk>
2011-06-12 19:37:11 +02:00
Martin Sustrik
49df2f416c
Fixes warning when compiling with MSVC on Win64
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-05-15 13:12:09 +02:00
Martin Sustrik
18b9ebea32
The copyrights in file headers updated.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-03-02 16:30:40 +01:00
Martin Sustrik
56bdba592c
Fix cppcheck warnings: Prefer prefix ++/-- operators for non-primitive types.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2011-01-18 15:57:45 +01:00
Martin Sustrik
756f7df8c8
Previous FD_STSIZE patch reverted.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-11-04 16:11:04 +01:00
Martin Sustrik
2246689c8f
FD_SETSIZE for internal polling defaults to 1024
...
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-04 13:12:40 +01:00
Mikael Helbo Kjaer
0ad71f88fe
select now uses Erase-Remove idiom for retired fds
...
Signed-off-by: Mikael Helbo Kjaer <mhk@designtech.dk>
2010-11-01 12:54:58 +01:00
Martin Sustrik
b358df9fff
Name of "GNU Lesser Public License" corrected.
...
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
2010-10-30 15:08:28 +02:00
Mikko Koppanen
3e74a439c4
Cast execute_timers() result to int
...
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
2010-10-15 11:21:56 +02:00
Christian Gudrian
f5030a93a5
Execute the timers before pollset initialisation.
...
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-09 19:19:50 +02:00