about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-01 04:28:16 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-01 04:28:16 +0000
commitbc710b3b7a7c2d94377b023ad9fe46e25c7e3405 (patch)
treec6b5a11b7f14a201def3f2e671af3a03e52dd38f
parentafcc32a5f8883520769d48f856d1e3febbdebc18 (diff)
downloadglibc-bc710b3b7a7c2d94377b023ad9fe46e25c7e3405.tar.gz
glibc-bc710b3b7a7c2d94377b023ad9fe46e25c7e3405.tar.xz
glibc-bc710b3b7a7c2d94377b023ad9fe46e25c7e3405.zip
Update.
2000-10-31  Ulrich Drepper  <drepper@redhat.com>

	* sunrpc/clnt_gen.c (clnt_create): Don't set timeout with
	clnt_control for any protocol.  This would make it impossible for
	the user to provide one in clnt_call().
	Reported by Hitoshi Guutara Maruyama <maruyama@sh.rim.or.jp>.
-rw-r--r--ChangeLog7
-rw-r--r--sunrpc/clnt_gen.c15
2 files changed, 22 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8229492436..32a46eb84b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2000-10-31  Ulrich Drepper  <drepper@redhat.com>
+
+	* sunrpc/clnt_gen.c (clnt_create): Don't set timeout with
+	clnt_control for any protocol.  This would make it impossible for
+	the user to provide one in clnt_call().
+	Reported by Hitoshi Guutara Maruyama <maruyama@sh.rim.or.jp>.
+
 2000-10-31  Jes Sorensen  <jes@linuxcare.com>
 
 	* sysdeps/ia64/fpu/s_isinfl.S: New file,  - assembly based
diff --git a/sunrpc/clnt_gen.c b/sunrpc/clnt_gen.c
index 0f388572d4..a4fefb57e5 100644
--- a/sunrpc/clnt_gen.c
+++ b/sunrpc/clnt_gen.c
@@ -69,9 +69,14 @@ clnt_create (const char *hostname, u_long prog, u_long vers,
       client = clntunix_create (&sun, prog, vers, &sock, 0, 0);
       if (client == NULL)
 	return NULL;
+#if 0
+      /* This is not wanted.  This would disable the user from having
+	 a timeout in the clnt_call() call.  Only a call to cnlt_control()
+	 by the user should set the timeout value.  */
       tv.tv_sec = 25;
       tv.tv_usec = 0;
       clnt_control (client, CLSET_TIMEOUT, (char *)&tv);
+#endif
       return client;
     }
 
@@ -134,8 +139,13 @@ clnt_create (const char *hostname, u_long prog, u_long vers,
 	{
 	  return NULL;
 	}
+#if 0
+      /* This is not wanted.  This would disable the user from having
+	 a timeout in the clnt_call() call.  Only a call to cnlt_control()
+	 by the user should set the timeout value.  */
       tv.tv_sec = 25;
       clnt_control (client, CLSET_TIMEOUT, (char *)&tv);
+#endif
       break;
     case IPPROTO_TCP:
       client = clnttcp_create (&sin, prog, vers, &sock, 0, 0);
@@ -143,9 +153,14 @@ clnt_create (const char *hostname, u_long prog, u_long vers,
 	{
 	  return NULL;
 	}
+#if 0
+      /* This is not wanted.  This would disable the user from having
+	 a timeout in the clnt_call() call.  Only a call to cnlt_control()
+	 by the user should set the timeout value.  */
       tv.tv_sec = 25;
       tv.tv_usec = 0;
       clnt_control (client, CLSET_TIMEOUT, (char *)&tv);
+#endif
       break;
     default:
       rpc_createerr.cf_stat = RPC_SYSTEMERROR;