mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
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
This commit is contained in:
parent
136eda1dc3
commit
99b671f5a1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158713
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user