|
@@ -137,20 +137,6 @@ static ctl_table sunrpc_table[] = {
|
|
|
|
|
|
#endif
|
|
|
|
|
|
-/*
|
|
|
- * Time out for an RPC UDP socket connect. UDP socket connects are
|
|
|
- * synchronous, but we set a timeout anyway in case of resource
|
|
|
- * exhaustion on the local host.
|
|
|
- */
|
|
|
-#define XS_UDP_CONN_TO (5U * HZ)
|
|
|
-
|
|
|
-/*
|
|
|
- * Wait duration for an RPC TCP connection to be established. Solaris
|
|
|
- * NFS over TCP uses 60 seconds, for example, which is in line with how
|
|
|
- * long a server takes to reboot.
|
|
|
- */
|
|
|
-#define XS_TCP_CONN_TO (60U * HZ)
|
|
|
-
|
|
|
/*
|
|
|
* Wait duration for a reply from the RPC portmapper.
|
|
|
*/
|
|
@@ -2324,7 +2310,6 @@ static struct rpc_xprt *xs_setup_udp(struct xprt_create *args)
|
|
|
xprt->max_payload = (1U << 16) - (MAX_HEADER << 3);
|
|
|
|
|
|
xprt->bind_timeout = XS_BIND_TO;
|
|
|
- xprt->connect_timeout = XS_UDP_CONN_TO;
|
|
|
xprt->reestablish_timeout = XS_UDP_REEST_TO;
|
|
|
xprt->idle_timeout = XS_IDLE_DISC_TO;
|
|
|
|
|
@@ -2399,7 +2384,6 @@ static struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
|
|
|
xprt->max_payload = RPC_MAX_FRAGMENT_SIZE;
|
|
|
|
|
|
xprt->bind_timeout = XS_BIND_TO;
|
|
|
- xprt->connect_timeout = XS_TCP_CONN_TO;
|
|
|
xprt->reestablish_timeout = XS_TCP_INIT_REEST_TO;
|
|
|
xprt->idle_timeout = XS_IDLE_DISC_TO;
|
|
|
|
|
@@ -2475,7 +2459,6 @@ static struct rpc_xprt *xs_setup_bc_tcp(struct xprt_create *args)
|
|
|
/* backchannel */
|
|
|
xprt_set_bound(xprt);
|
|
|
xprt->bind_timeout = 0;
|
|
|
- xprt->connect_timeout = 0;
|
|
|
xprt->reestablish_timeout = 0;
|
|
|
xprt->idle_timeout = 0;
|
|
|
|