[zeromq-dev] Multi-threaded server example: issue with multiple clients
Radu Braniste
rbraniste at gmail.com
Tue Jul 20 20:47:20 CEST 2010
I am running the multi-threaded server example(
http://zeromq.wikidot.com/blog:multithreaded-server) in the following
manner:
1: start the server
2: start one client. The client does 20 requests and receives 20 replies.
3. after the 1st client has sent 10 requests (for example) start a 2nd
client.
Expected behavior: both clients to finish their 20 send/request jobs
Observed behavior: 1st client finishes its work. The 2nd client starts
working correctly. The moment the 1st client finishes the 2nd client blocks
in recv. The server is of course blocked too. Starting another client has
the effect of correctly finishing the job of the interrupted one (the 2nd).
When the 2nd stops working the 3rd blocks a.s.o
Any help in this matter much appreciated
Thanks
Radu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100720/ea09f7a6/attachment.htm>
More information about the zeromq-dev
mailing list