SUNRPC: attempt AF_LOCAL connect on setup
In the gss-proxy case, setup time is when I know I'll have the right namespace for the connect. In other cases, it might be useful to get any connection errors earlier--though actually in practice it doesn't make any difference for rpcbind. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
c85b03ab20
commit
7073ea8799
@ -2655,6 +2655,9 @@ static struct rpc_xprt *xs_setup_local(struct xprt_create *args)
|
|||||||
}
|
}
|
||||||
xprt_set_bound(xprt);
|
xprt_set_bound(xprt);
|
||||||
xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL);
|
xs_format_peer_addresses(xprt, "local", RPCBIND_NETID_LOCAL);
|
||||||
|
ret = ERR_PTR(xs_local_setup_socket(transport));
|
||||||
|
if (ret)
|
||||||
|
goto out_err;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ret = ERR_PTR(-EAFNOSUPPORT);
|
ret = ERR_PTR(-EAFNOSUPPORT);
|
||||||
|
Loading…
Reference in New Issue
Block a user