[zeromq-dev] Multi-threaded server example: issue with multiple clients
Martin Sustrik
sustrik at 250bpm.com
Wed Jul 21 09:00:22 CEST 2010
Radu,
> 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
Can you possibly post the test code?
Martin
More information about the zeromq-dev
mailing list