You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing the PUSH/PULL socket using TCP transport.
If IPv4only option was disabled, and try to connect with IPv4 address,
the destination address resolved AF_INET, but local address which the socket would bind resolved as AF_INET6.
so nn_usock_start makes the socket AF_INET.
after that nn_ctcp_start_connecting() try to bind the local IPv6 address, it was failed.
the local address lookup code is not working properly.
nn_iface_any determines the bind address only with ipv4only option.
after that, nanomsg try to reconnect and takes a same routine again.
at that time usock->state is not idle, it is NN_USOCK_STATE_STARTING,
so nn_usock_start is assert.
please consider the following three points
nn_iface_any should not determine the address with ipv4only option
nn_usock_start should consider connection retry case.
if ipv4only option is disabled, make the socket as AF_INET6 forced.
The text was updated successfully, but these errors were encountered:
clearday4
changed the title
nn_send assert whenIPv4only option was disabled, and try to connect with IPv4 address
nn_send assert when IPv4only option was disabled, and try to connect with IPv4 address
Nov 29, 2018
I'm testing the PUSH/PULL socket using TCP transport.
If IPv4only option was disabled, and try to connect with IPv4 address,
the destination address resolved AF_INET, but local address which the socket would bind resolved as AF_INET6.
so nn_usock_start makes the socket AF_INET.
after that nn_ctcp_start_connecting() try to bind the local IPv6 address, it was failed.
the local address lookup code is not working properly.
nn_iface_any determines the bind address only with ipv4only option.
after that, nanomsg try to reconnect and takes a same routine again.
at that time usock->state is not idle, it is NN_USOCK_STATE_STARTING,
so nn_usock_start is assert.
please consider the following three points
The text was updated successfully, but these errors were encountered: