]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The maximum RPC message size was set at 8k for UDP. This is lower
authorIan Dowse <iedowse@FreeBSD.org>
Sun, 8 Apr 2001 19:21:50 +0000 (19:21 +0000)
committerIan Dowse <iedowse@FreeBSD.org>
Sun, 8 Apr 2001 19:21:50 +0000 (19:21 +0000)
commite14f19f42a117fb570be2acf9402906e0badaea7
treec928c8b614268507c69e85d14fc2943037431061
parent92020f7a8c6d6fc049da1dcf0943b74739103c7d
The maximum RPC message size was set at 8k for UDP. This is lower
than the default buffer size in the old RPC code (8800 bytes), and
it could not be overriden by the application. This caused problems
with CFS (/usr/port/security/cfs).

Change this default back to UDPMSGSIZE (8800 bytes), but more
importantly, allow applications to use larger message sizes for
all protocols if desired. Choose an arbitrary maximum message size
of 256k instead of using the default as the maximum (which is
silly).

Reported by: ache
Reviewed by: alfred, Martin Blapp <mb@imp.ch>
lib/libc/rpc/rpc_generic.c