[nanomsg] Re: Nanomsg with threads

  • From: Timothee Besset <ttimo@xxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Sat, 7 Mar 2015 07:53:24 -0800

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>server
> Server: 0, server_loop
> Server: 1, server_loop
> Server: 2, server_loop
> Server: 3, server_loop
> Server: 4, server_loop
> Server: 5, server_loop
> Server: 6, server_loop
> Server: 0, received: client1
> Server: 0, received: client2
> Server: 0, received: client3
> ^C
> C:\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: