Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
ef049efe
Commit
ef049efe
authored
Jan 05, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf tests modified to reflect change in subscription format
parent
8d339e95
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
9 deletions
+11
-9
local_thr.c
perf/c/local_thr.c
+1
-1
local-thr.lisp
perf/cl/local-thr.lisp
+1
-1
local_thr.cpp
perf/cpp/local_thr.cpp
+1
-1
local_thr.java
perf/java/local_thr.java
+1
-1
local_thr.py
perf/python/local_thr.py
+1
-1
local_thr.rb
perf/ruby/local_thr.rb
+1
-1
zmq_engine.cpp
src/zmq_engine.cpp
+5
-3
No files found.
perf/c/local_thr.c
View file @
ef049efe
...
...
@@ -51,7 +51,7 @@ int main (int argc, char *argv [])
s
=
zmq_socket
(
ctx
,
ZMQ_SUB
);
assert
(
s
);
rc
=
zmq_setsockopt
(
s
,
ZMQ_SUBSCRIBE
,
"
*"
,
1
);
rc
=
zmq_setsockopt
(
s
,
ZMQ_SUBSCRIBE
,
"
"
,
0
);
assert
(
rc
==
0
);
// Add your socket options here.
...
...
perf/cl/local-thr.lisp
View file @
ef049efe
...
...
@@ -30,7 +30,7 @@
(
zmq::with-context
(
ctx
1
1
)
(
zmq:with-socket
(
s
ctx
zmq:sub
)
(
zmq:setsockopt
s
zmq:subscribe
"
*
"
)
(
zmq:setsockopt
s
zmq:subscribe
""
)
(
zmq:setsockopt
s
zmq:rate
*rate*
)
(
zmq:bind
s
*bind-address*
)
(
let
((
msg
(
make-instance
'zmq:msg
)))
...
...
perf/cpp/local_thr.cpp
View file @
ef049efe
...
...
@@ -38,7 +38,7 @@ int main (int argc, char *argv [])
zmq
::
socket_t
s
(
ctx
,
ZMQ_SUB
);
s
.
setsockopt
(
ZMQ_SUBSCRIBE
,
"
*"
,
1
);
s
.
setsockopt
(
ZMQ_SUBSCRIBE
,
"
"
,
0
);
// Add your socket options here.
// For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM.
...
...
perf/java/local_thr.java
View file @
ef049efe
...
...
@@ -37,7 +37,7 @@ class local_thr
org
.
zmq
.
Socket
s
=
new
org
.
zmq
.
Socket
(
ctx
,
org
.
zmq
.
Socket
.
SUB
);
s
.
setsockopt
(
org
.
zmq
.
Socket
.
SUBSCRIBE
,
"
*
"
);
s
.
setsockopt
(
org
.
zmq
.
Socket
.
SUBSCRIBE
,
""
);
// Add your socket options here.
// For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM.
...
...
perf/python/local_thr.py
View file @
ef049efe
...
...
@@ -37,7 +37,7 @@ def main ():
ctx
=
libpyzmq
.
Context
(
1
,
1
);
s
=
libpyzmq
.
Socket
(
ctx
,
libpyzmq
.
SUB
)
s
.
setsockopt
(
libpyzmq
.
SUBSCRIBE
,
"
*
"
);
s
.
setsockopt
(
libpyzmq
.
SUBSCRIBE
,
""
);
# Add your socket options here.
# For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM.
...
...
perf/ruby/local_thr.rb
View file @
ef049efe
...
...
@@ -29,7 +29,7 @@ message_count = ARGV[2].to_i
ctx
=
Context
.
new
(
1
,
1
,
0
)
s
=
Socket
.
new
(
ctx
,
SUB
);
s
.
setsockopt
(
SUBSCRIBE
,
"
*
"
);
s
.
setsockopt
(
SUBSCRIBE
,
""
);
# Add your socket options here.
# For example ZMQ_RATE, ZMQ_RECOVERY_IVL and ZMQ_MCAST_LOOP for PGM.
...
...
src/zmq_engine.cpp
View file @
ef049efe
...
...
@@ -102,9 +102,11 @@ void zmq::zmq_engine_t::in_event ()
// Stop polling for input if we got stuck.
if
(
processed
<
insize
)
{
zmq_assert
(
false
);
// TODO: This may happen is queue limits are implemented.
// reset_pollin (handle);
// This may happen if queue limits are implemented or when
// init object reads all required information from the socket
// and rejects to read more data.
reset_pollin
(
handle
);
}
// Flush all messages the decoder may have produced.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment