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

REQ socket drop message silently if two message coming together very fast #872

Open
ruleil opened this issue Oct 17, 2021 · 0 comments
Open

Comments

@ruleil
Copy link

ruleil commented Oct 17, 2021

This is a reproducible message silently dropped issue with a very small changes to the lbbroker.cpp.

https://github.com/booksbyus/zguide/blob/master/examples/C%2B%2B/lbbroker.cpp

In the lbbroker.cpp file, a worker will be pop out from work_queue when handling a request from client thread. If we modify the line 163 from "std::string worker_addr = worker_queue.front();" to "static std::string worker_addr = worker_queue.front();", as the following picture shows. All request will be forwarded to one worker, then we can see some messages will be dropped by the REQ socket the worker. Is it normal? REQ socket cannot receive other message when the worker logic is running ?

image

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