aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-05-17 23:18:17 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-05-17 23:18:17 +0000
commit99b671f5a163885598ed17d7722cdb83beff422d (patch)
tree001f859f1f132b72bdd1d7a3dbe5d958aa043a81 /usr.bin
parent136eda1dc35af5ce3860260f868e2a65f2588f07 (diff)
downloadsrc-99b671f5a163885598ed17d7722cdb83beff422d.tar.gz
src-99b671f5a163885598ed17d7722cdb83beff422d.zip
In change 1.15, an arbitrary setting of the max RPC record size to
RPC_MAXDATASIZE was introduced. This is believed to have been debugging code committed accidentally, although I've been unable to reach the committer to confirm this. The effect was to limit the size of RPCs on TCP and UDP to 9k, well below the default protocol limits in the libc rpc code. This change simply removes these introduced limits, falling back on the libc definitions. PR: 88856 Reported by: Keith Bostic <bostic at sleepycat dot com> Testing by: Susan LoVerso <sue at loverso dot southborough dot ma dot us> Reveiwed by: cel, rees Review timeout: alfred, mbr MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=158713
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rpcgen/rpc_svcout.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c
index b8fcbd7c87ec..1f844677ed5a 100644
--- a/usr.bin/rpcgen/rpc_svcout.c
+++ b/usr.bin/rpcgen/rpc_svcout.c
@@ -134,11 +134,6 @@ serviced */\n");
f_print(fout, "\nint\n");
f_print(fout, "main()\n");
f_print(fout, "{\n");
- if (tirpcflag) {
- if (!inetdflag)
- f_print(fout, "\t");
- f_print(fout, "\tint maxrec = RPC_MAXDATASIZE;\n");
- }
if (inetdflag) {
write_inetmost(infile);
/* Includes call to write_rpc_svc_fg() */
@@ -258,10 +253,6 @@ write_nettype_register(const char *transp)
if (def->def_kind != DEF_PROGRAM) {
continue;
}
- if (tirpcflag) {
- f_print(fout,
- "\trpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec);\n");
- }
for (vp = def->def.pr.versions; vp != NULL; vp = vp->next) {
f_print(fout, "\tif (!svc_create(");
pvname(def->def_name, vp->vers_num);
@@ -982,8 +973,6 @@ write_inetd_register(const char *transp)
"\tif ((_rpcfdtype == 0) || (_rpcfdtype == %s)) {\n",
isudp ? "SOCK_DGRAM" : "SOCK_STREAM");
}
- if (tirpcflag)
- f_print(fout, "\t\trpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec);\n");
f_print(fout, "%s\t%s = svc%s_create(%s",
sp, TRANSP, transp, inetdflag? "sock": "RPC_ANYSOCK");
if (!isudp)