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
/* Bind to the IP address associated with the hostname, in case there are
* muliple possible source IPs for this destination.*/
// don't bind localhost addr
if (!islocalhostaddr(&local))
{
if (bind(sock, (structsockaddr*)&local, sizeof(sockaddr_in)))
{
fprintf(stderr, "could not bind local socket: %s", strerror(errno));
close(sock);
continue;
}
}
#endif
will attempt to bind all types, causing bind to be called on a AF_INET6 socket with a AF_INET argument and producing the error message.
I've submitted #458 as a potential fix, but should probably be revisited so that it will work with IPv6. Note that the IPv6 limitation is one of get_local_address() and not the patch.
The text was updated successfully, but these errors were encountered:
Users see 'could not bind local socket: Invalid argument' in their error stream when using
qsub -X
. The error originates fromtorque/src/lib/Libnet/port_forwarding.c
Line 440 in 8a0b748
It is because the get_local_address() function returns a sa_family=AF_INET struct but the loop at
torque/src/lib/Libnet/port_forwarding.c
Lines 420 to 446 in 8a0b748
I've submitted #458 as a potential fix, but should probably be revisited so that it will work with IPv6. Note that the IPv6 limitation is one of get_local_address() and not the patch.
The text was updated successfully, but these errors were encountered: