parent
8ec82641d8
commit
b2b64a90d2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120755
@ -599,6 +599,7 @@ bootpc_call(struct bootpc_globalcontext *gctx, struct thread *td)
|
||||
tv.tv_sec = 1;
|
||||
tv.tv_usec = 0;
|
||||
bzero(&sopt, sizeof(sopt));
|
||||
sopt.sopt_dir = SOPT_SET;
|
||||
sopt.sopt_level = SOL_SOCKET;
|
||||
sopt.sopt_name = SO_RCVTIMEO;
|
||||
sopt.sopt_val = &tv;
|
||||
|
@ -222,6 +222,7 @@ krpc_call(struct sockaddr_in *sa, u_int prog, u_int vers, u_int func,
|
||||
tv.tv_sec = 1;
|
||||
tv.tv_usec = 0;
|
||||
bzero(&sopt, sizeof sopt);
|
||||
sopt.sopt_dir = SOPT_SET;
|
||||
sopt.sopt_level = SOL_SOCKET;
|
||||
sopt.sopt_name = SO_RCVTIMEO;
|
||||
sopt.sopt_val = &tv;
|
||||
|
@ -288,6 +288,7 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep)
|
||||
int val;
|
||||
|
||||
bzero(&sopt, sizeof sopt);
|
||||
sopt.sopt_dir = SOPT_SET;
|
||||
sopt.sopt_level = SOL_SOCKET;
|
||||
sopt.sopt_name = SO_KEEPALIVE;
|
||||
sopt.sopt_val = &val;
|
||||
@ -300,6 +301,7 @@ nfs_connect(struct nfsmount *nmp, struct nfsreq *rep)
|
||||
int val;
|
||||
|
||||
bzero(&sopt, sizeof sopt);
|
||||
sopt.sopt_dir = SOPT_SET;
|
||||
sopt.sopt_level = IPPROTO_TCP;
|
||||
sopt.sopt_name = TCP_NODELAY;
|
||||
sopt.sopt_val = &val;
|
||||
|
Loading…
Reference in New Issue
Block a user