[nanomsg] Re: How to bind on a random port?

  • From: Martin Sustrik <sustrik@xxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Sun, 16 Nov 2014 04:01:21 +0100

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

On 16/11/14 00:26, Jason E. Aten wrote:

> https://github.com/nanomsg/nanomsg/blob/master/src/transports/tcp/ctcp.c#L619
>
>  It does seem problematic to me that there is an errnum_assert()
> here.
> 
> Martin/everyone: it would seem reasonable to return an error
> instead of aborting here, no?

It should be treated as a failure to connect. The implementation
should try to re-connect assuming that the interface will become
available eventually.

Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJUaBOBAAoJENTpVjxCNN9YCW8H/RnvbRquan/54vP3R4ZVO18V
Ciz6bvZ2Lg/93zEaeYqEUCrPGA7xgvAElh6bU+0Z7g/TPXmKNj+rnGcRttB4rFOA
n/BB7/7BaQJWyHI0YWx8r4BDUEFWsVuxDNrYaVhzKiAu3tBbFG+mgvzq5EzKvijh
VCvMikvrU+Ho60VyaN9qg7cCRccZmnreA0cB3QP4Ss8an+GLzgReRp+R9nvxhkxx
SqzL/5qV+JNuUbnV4Jx+KKEPbNK9cim8uhZ++L4j6kYYn5/lO9lNaXCA3iDpC19n
0hsCrLAshnnyHKwsvyWbC5l9pFixgYDHxWyxRPi+H+F6yi0cVG+gjOqYoH6yQ+M=
=7TLi
-----END PGP SIGNATURE-----

Other related posts: