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

C++ examples - ppqueue.cpp : Can't send reply to client #853

Open
pvthuyet opened this issue Jul 1, 2021 · 0 comments
Open

C++ examples - ppqueue.cpp : Can't send reply to client #853

pvthuyet opened this issue Jul 1, 2021 · 0 comments

Comments

@pvthuyet
Copy link

pvthuyet commented Jul 1, 2021

  • Reproduce: (window environment)
  1. run ppqueue.exe
  2. run ppworker.exe
  3. run lpclient.exe
  • Result: client can't received result

  • Root cause
    in ppqueue.cpp line 126

        //  Handle worker activity on backend
        if (items [0].revents & ZMQ_POLLIN) {
            zmsg msg (backend);
            std::string identity(msg.unwrap ());

msg.unwrap() will remove client's address. Therefore, message can't deliver to client
I dumped data before and after call msg.unwrap()

 ******* Before call unwrap()
--------------------------------------
[004] 0001
[005] 008000002a
[000]
[001] 1

 ******* After call unwrap()
--------------------------------------
[000]
[001] 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant