]> xenbits.xensource.com Git - freebsd.git/commitdiff
Increase the size of the send and receive buffers for YP client rpc
authorkib <kib@FreeBSD.org>
Mon, 16 Sep 2019 06:42:01 +0000 (06:42 +0000)
committerkib <kib@FreeBSD.org>
Mon, 16 Sep 2019 06:42:01 +0000 (06:42 +0000)
calls to max allowed UDP datagram size.

Since max allowed size both for keys and values where increased, the
old sizes of around 1K cause ypmatch(3) failures, while plain maps
fetches work.

The buffers were reduced in r34146 from default UDP rpcclient values
to 1024/2304 due to the key and value size being 1K.

Reviewed by: slavash
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D21586

lib/libc/yp/yplib.c

index 4f3d921706f74d6ef69f4e2acd585fca18d0a53a..92b57c2512db73c8d3a57b05aede8d9a2a078c52 100644 (file)
@@ -526,7 +526,7 @@ gotit:
                tv.tv_usec = 0;
                ysd->dom_socket = RPC_ANYSOCK;
                ysd->dom_client = clntudp_bufcreate(&ysd->dom_server_addr,
-                       YPPROG, YPVERS, tv, &ysd->dom_socket, 1280, 2304);
+                   YPPROG, YPVERS, tv, &ysd->dom_socket, 65507, 65507);
                if (ysd->dom_client == NULL) {
                        clnt_pcreateerror("clntudp_create");
                        ysd->dom_vers = -1;