[nanomsg] Re: Multiple connections to pair on Windows?

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Thu, 31 Oct 2013 09:51:53 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30/10/13 21:00, Dirk Reiners wrote:

> I'm having some trouble on Windows, resulting in crashes (or more
> exactly Unknown error [113] (..\..\src\transports\tcp\stcp.c:276)
> aborts). This happens when I try to have a second program connect
> to a pair socket, which works fine on Linux. The first client just
> sends one message through the pair and gets one response, which
> happens long before the second one starts. Is this a legal use case
> for pair?

To add more info, 113 translates to EISCONN, which is error code that
PAIR socket uses internally to signalise that second connection was
rejected. It should not fail though. Can you possibly capture the
backtrace at the point of failure?

Martin

PS. Another minor problem is why the error report says "Unknown
error". It should have said "Socket already connected," or something
similar.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSchoiAAoJENTpVjxCNN9YZt8IAIqMfv71d2LzGRR3uEPLSJal
gsbyCV3MQtPFScaS0vonaRKwePKPdCG/ceek88D/7egMp2chTQCEingpcDjwuRhr
lf1IeOUmAWQiHYwoeN2GLh54UUfJotEEkRi21o78BSxdFtr8+zwqHCHUIoXnrMxD
XPJo6lA7od5ZmqOoVkmqx3THTdY6IndGAQhRsFC1JgGmOxnTcROFGa7LeEvj6Tiy
kBrEzLE8XYnX4ocG/tVCjaTyqPRKmGCZppgWbssMwZ59RItx5+V6cK086vPy5QMS
ma8ac2PSKpCv20yw5QUX7XAodPoytHKuSKUAbMDTdgWquqsSoEYOKteHY187K4Y=
=vB07
-----END PGP SIGNATURE-----

Other related posts: