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
d5e7922d
Commit
d5e7922d
authored
Jan 30, 2015
by
Telford Berkey
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/upstream/master'
parents
e351cbdd
9826a7b1
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
19 additions
and
19 deletions
+19
-19
test_connect_delay_tipc.cpp
tests/test_connect_delay_tipc.cpp
+1
-1
test_filter_ipc.cpp
tests/test_filter_ipc.cpp
+2
-2
test_immediate.cpp
tests/test_immediate.cpp
+1
-1
test_req_relaxed.cpp
tests/test_req_relaxed.cpp
+1
-1
test_security_curve.cpp
tests/test_security_curve.cpp
+1
-1
test_security_null.cpp
tests/test_security_null.cpp
+1
-1
test_security_plain.cpp
tests/test_security_plain.cpp
+1
-1
test_spec_dealer.cpp
tests/test_spec_dealer.cpp
+3
-3
test_spec_pushpull.cpp
tests/test_spec_pushpull.cpp
+2
-2
test_spec_rep.cpp
tests/test_spec_rep.cpp
+1
-1
test_spec_req.cpp
tests/test_spec_req.cpp
+3
-3
test_spec_router.cpp
tests/test_spec_router.cpp
+1
-1
testutil.hpp
tests/testutil.hpp
+1
-1
No files found.
tests/test_connect_delay_tipc.cpp
View file @
d5e7922d
...
...
@@ -75,7 +75,7 @@ int main (void)
// We now consume from the connected pipe
// - we should see just 5
int
timeout
=
10
0
;
int
timeout
=
25
0
;
rc
=
zmq_setsockopt
(
to
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
tests/test_filter_ipc.cpp
View file @
d5e7922d
...
...
@@ -37,7 +37,7 @@ static void bounce_fail (void *server, void *client)
assert
(
rc
==
32
);
// Receive message at server side (should not succeed)
int
timeout
=
1
50
;
int
timeout
=
2
50
;
rc
=
zmq_setsockopt
(
server
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
rc
=
zmq_recv
(
server
,
buffer
,
32
,
0
);
...
...
@@ -77,7 +77,7 @@ static void run_test (int opt, T optval, int expected_error, int bounce_test)
assert
(
sc
);
// If a test fails, don't hang for too long
int
timeout
=
1
500
;
int
timeout
=
2
500
;
rc
=
zmq_setsockopt
(
sb
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
rc
=
zmq_setsockopt
(
sb
,
ZMQ_SNDTIMEO
,
&
timeout
,
sizeof
(
int
));
...
...
tests/test_immediate.cpp
View file @
d5e7922d
...
...
@@ -66,7 +66,7 @@ int main (void)
// We now consume from the connected pipe
// - we should see just 5
int
timeout
=
10
0
;
int
timeout
=
25
0
;
rc
=
zmq_setsockopt
(
to
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
tests/test_req_relaxed.cpp
View file @
d5e7922d
...
...
@@ -44,7 +44,7 @@ int main (void)
rep
[
peer
]
=
zmq_socket
(
ctx
,
ZMQ_REP
);
assert
(
rep
[
peer
]);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
rc
=
zmq_setsockopt
(
rep
[
peer
],
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
tests/test_security_curve.cpp
View file @
d5e7922d
...
...
@@ -244,7 +244,7 @@ int main (void)
send
(
s
,
"
\x01\x00
"
,
2
,
0
);
// send sneaky message that shouldn't be received
send
(
s
,
"
\x08\x00
sneaky
\0
"
,
9
,
0
);
int
timeout
=
1
50
;
int
timeout
=
2
50
;
zmq_setsockopt
(
server
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
timeout
));
char
*
buf
=
s_recv
(
server
);
if
(
buf
!=
NULL
)
{
...
...
tests/test_security_null.cpp
View file @
d5e7922d
...
...
@@ -157,7 +157,7 @@ int main (void)
send
(
s
,
"
\x01\x00
"
,
2
,
0
);
// send sneaky message that shouldn't be received
send
(
s
,
"
\x08\x00
sneaky
\0
"
,
9
,
0
);
int
timeout
=
1
50
;
int
timeout
=
2
50
;
zmq_setsockopt
(
server
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
timeout
));
char
*
buf
=
s_recv
(
server
);
if
(
buf
!=
NULL
)
{
...
...
tests/test_security_plain.cpp
View file @
d5e7922d
...
...
@@ -163,7 +163,7 @@ int main (void)
send
(
s
,
"
\x01\x00
"
,
2
,
0
);
// send sneaky message that shouldn't be received
send
(
s
,
"
\x08\x00
sneaky
\0
"
,
9
,
0
);
int
timeout
=
1
50
;
int
timeout
=
2
50
;
zmq_setsockopt
(
server
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
timeout
));
char
*
buf
=
s_recv
(
server
);
if
(
buf
!=
NULL
)
{
...
...
tests/test_spec_dealer.cpp
View file @
d5e7922d
...
...
@@ -36,7 +36,7 @@ void test_round_robin_out (void *ctx)
rep
[
peer
]
=
zmq_socket
(
ctx
,
ZMQ_REP
);
assert
(
rep
[
peer
]);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
rc
=
zmq_setsockopt
(
rep
[
peer
],
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
@@ -77,7 +77,7 @@ void test_fair_queue_in (void *ctx)
void
*
receiver
=
zmq_socket
(
ctx
,
ZMQ_DEALER
);
assert
(
receiver
);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
int
rc
=
zmq_setsockopt
(
receiver
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
@@ -200,7 +200,7 @@ void test_block_on_send_no_peers (void *ctx)
void
*
sc
=
zmq_socket
(
ctx
,
ZMQ_DEALER
);
assert
(
sc
);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
int
rc
=
zmq_setsockopt
(
sc
,
ZMQ_SNDTIMEO
,
&
timeout
,
sizeof
(
timeout
));
assert
(
rc
==
0
);
...
...
tests/test_spec_pushpull.cpp
View file @
d5e7922d
...
...
@@ -36,7 +36,7 @@ void test_push_round_robin_out (void *ctx)
pulls
[
peer
]
=
zmq_socket
(
ctx
,
ZMQ_PULL
);
assert
(
pulls
[
peer
]);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
rc
=
zmq_setsockopt
(
pulls
[
peer
],
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
@@ -155,7 +155,7 @@ void test_push_block_on_send_no_peers (void *ctx)
void
*
sc
=
zmq_socket
(
ctx
,
ZMQ_PUSH
);
assert
(
sc
);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
int
rc
=
zmq_setsockopt
(
sc
,
ZMQ_SNDTIMEO
,
&
timeout
,
sizeof
(
timeout
));
assert
(
rc
==
0
);
...
...
tests/test_spec_rep.cpp
View file @
d5e7922d
...
...
@@ -27,7 +27,7 @@ void test_fair_queue_in (void *ctx)
void
*
rep
=
zmq_socket
(
ctx
,
ZMQ_REP
);
assert
(
rep
);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
int
rc
=
zmq_setsockopt
(
rep
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
tests/test_spec_req.cpp
View file @
d5e7922d
...
...
@@ -36,7 +36,7 @@ void test_round_robin_out (void *ctx)
rep
[
peer
]
=
zmq_socket
(
ctx
,
ZMQ_REP
);
assert
(
rep
[
peer
]);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
rc
=
zmq_setsockopt
(
rep
[
peer
],
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
@@ -83,7 +83,7 @@ void test_req_only_listens_to_current_peer (void *ctx)
router
[
i
]
=
zmq_socket
(
ctx
,
ZMQ_ROUTER
);
assert
(
router
[
i
]);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
rc
=
zmq_setsockopt
(
router
[
i
],
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
timeout
));
assert
(
rc
==
0
);
...
...
@@ -195,7 +195,7 @@ void test_block_on_send_no_peers (void *ctx)
void
*
sc
=
zmq_socket
(
ctx
,
ZMQ_REQ
);
assert
(
sc
);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
int
rc
=
zmq_setsockopt
(
sc
,
ZMQ_SNDTIMEO
,
&
timeout
,
sizeof
(
timeout
));
assert
(
rc
==
0
);
...
...
tests/test_spec_router.cpp
View file @
d5e7922d
...
...
@@ -27,7 +27,7 @@ void test_fair_queue_in (void *ctx)
void
*
receiver
=
zmq_socket
(
ctx
,
ZMQ_ROUTER
);
assert
(
receiver
);
int
timeout
=
10
0
;
int
timeout
=
25
0
;
int
rc
=
zmq_setsockopt
(
receiver
,
ZMQ_RCVTIMEO
,
&
timeout
,
sizeof
(
int
));
assert
(
rc
==
0
);
...
...
tests/testutil.hpp
View file @
d5e7922d
...
...
@@ -112,7 +112,7 @@ expect_bounce_fail (void *server, void *client)
{
const
char
*
content
=
"12345678ABCDEFGH12345678abcdefgh"
;
char
buffer
[
32
];
int
timeout
=
1
50
;
int
timeout
=
2
50
;
// Send message from client to server
int
rc
=
zmq_setsockopt
(
client
,
ZMQ_SNDTIMEO
,
&
timeout
,
sizeof
(
int
));
...
...
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