Hi Dmitri,

I think this is a timing issue; you call connect() before the bind ()
has finished.
Try to postpone  the connect() call by 1 second.

- Martin

On Mon, Jul 19, 2010 at 5:12 AM, Dmitri Toubelis
<dmitri.toube...@alkeron.com> wrote:
> Some more information on this issue. This is happening with PUB/SUB sockets.
> The program successfully binds SUB socket to inproc endpoint. But then
> subsequent connect to corresponding PUB socket fails with "Connection
> refused" error.
>
> -----Original Message-----
> From: zeromq-dev-boun...@lists.zeromq.org
> [mailto:zeromq-dev-boun...@lists.zeromq.org] On Behalf Of Dmitri Toubelis
> Sent: July 18, 2010 10:12 PM
> To: zeromq-dev@lists.zeromq.org
> Subject: [zeromq-dev] "inproc" socket connection fails on Centos5/AmazonEC
>
> I'm trying to run my code that makes use of "inproc" sockets on Centos5
> (running on Amazon) and it fails with "Connection refused" message. It works
> fine on my development machine which is FC7. Is this a known issue? Is there
> any workaround?
>
> Regards,
> Dmitri
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to