[nanomsg] Re: Nanomsg with threads

  • From: Ranier VF <ranier_gyn@xxxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Sat, 7 Mar 2015 16:47:51 +0000

Hi TTimo, are you fine?
Asserting in bind is ok, well I think nn_bind return positive, but does not 
make effect.assert(bind >= 0) line 57.
The big goal, is one new thread to a new incoming connection.
You know a way to implement?
Best regards,
Ranier Vilela
Date: Sat, 7 Mar 2015 07:53:24 -0800
Subject: [nanomsg] Re: Nanomsg with threads
From: ttimo@xxxxxxxxx
To: nanomsg@xxxxxxxxxxxxx

Hey Ranier,
Check that your nn_bind calls are succeeded, I expect they aren't - only Server 
0 is. You can't be binding multiple sockets to the same address.
TTimo
On Sat, Mar 7, 2015 at 7:03 AM, Ranier VF <ranier_gyn@xxxxxxxxxxx> wrote:



Hi,Finally I have a test case, working.Nanomsg with 
threads.http://pastebin.com/0EBfTAfD
Is is based on https://github.com/nanomsg/nanomsg/issues/271.
running:C:\usr\src\tests>serverServer: 0, server_loopServer: 1, 
server_loopServer: 2, server_loopServer: 3, server_loopServer: 4, 
server_loopServer: 5, server_loopServer: 6, server_loopServer: 0, received: 
client1Server: 0, received: client2Server: 0, received: 
client3^CC:\usr\src\tests>
Anybody, please can help with the following issues:
Only Server0 respond.Why not scale to all servers?How is the correct way to 
scale to all servers?
Thanks.
Best regards,
Ranier Vilela                                     

                                          

Other related posts: