Skip to content

Error on connect for sub socket #143

@adicirstei

Description

@adicirstei

Hi, I tried the code sample in the README for pub/sub sockets and got the EADDRNOTAVAIL error. Any Idea why this is happening? I am using a windows 7 64 bits machine with node 0.12.2 for the last test. I also got the same error on node 0.10.38 but only once a then the process died.
I ran this in the node REPL. The pub part was working just fine in a different REPL, no error occured (just to know that I didn't forgot that part).

> var a = require('axon')
undefined
> var s = a.socket('sub')
undefined
> s.connect(3003)
{ opts: {},
  server: null,
  socks: [],
  settings:
   { hwm: Infinity,
     identity: '120752',
     'retry timeout': 100,
     'retry max timeout': 5000 },
  subscriptions: [],
  type: 'client' }
> Error: connect EADDRNOTAVAIL
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)
> Error: connect EADDRNOTAVAIL
    at exports._errnoException (util.js:746:11)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1000:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions