Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem: request socket state machine check is not running #1730

Merged
merged 1 commit into from
Jan 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,8 @@ check_PROGRAMS = ${test_apps}

# Run the test cases
TESTS = $(test_apps)
XFAIL_TESTS =
XFAIL_TESTS = tests/test_req_correlate \
tests/test_req_relaxed

if !ON_LINUX
XFAIL_TESTS += tests/test_abstract_ipc
Expand Down
4 changes: 2 additions & 2 deletions src/session_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ namespace zmq

// Delivers a message. Returns 0 if successful; -1 otherwise.
// The function takes ownership of the message.
int push_msg (msg_t *msg_);
virtual int push_msg (msg_t *msg_);

int zap_connect ();
bool zap_enabled ();

// Fetches a message. Returns 0 if successful; -1 otherwise.
// The caller is responsible for freeing the message when no
// longer used.
int pull_msg (msg_t *msg_);
virtual int pull_msg (msg_t *msg_);

// Receives message from ZAP socket.
// Returns 0 on success; -1 otherwise.
Expand Down
4 changes: 4 additions & 0 deletions tests/test_req_relaxed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ int main (void)
rc = zmq_setsockopt (req, ZMQ_REQ_CORRELATE, &enabled, sizeof (int));
assert (rc == 0);

int rcvtimeo = 100;
rc = zmq_setsockopt (req, ZMQ_RCVTIMEO, &rcvtimeo, sizeof (int));
assert (rc == 0);

rc = zmq_bind (req, "tcp://127.0.0.1:5555");
assert (rc == 0);

Expand Down