]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 1.50:
authorsimon <simon@FreeBSD.org>
Sun, 11 Mar 2007 09:59:51 +0000 (09:59 +0000)
committersimon <simon@FreeBSD.org>
Sun, 11 Mar 2007 09:59:51 +0000 (09:59 +0000)
commitd9fc3654cca4c013e3d18702a726e950fdecee98
tree1bb74f548fdc448a1d8146f6031a77838efcfab9
parentc9319e36bb980102c38a7050cc779a1be4be9227
MFC 1.50:

- Bump _yplib_timeout limit from 10 to 20 seconds to better handle
  packet loss when talking to a NIS server.
- Set 1 second retry timeout to further realistically handle UDP
  packet loss for yp_next packet bursts.  If the packet hasn't come
  back within 1 second its rather unlikely to come back at all.  There
  is still back-off mechanism in RPC so if there is another reason
  than packet loss for the lack of response within 1 second, the NIS
  server will not be totally bombarded with requests.

This reduces the risk of NIS failing with:

yp_next: clnt_call: RPC: Timed out

considerably.  This is mainly a problem if you have larger NIS maps
(like at FreeBSD.org) since enumerations of the lists will cause a UDP
packet bursts where a few packets being lost once in a while do
happen.

Discussed with: peter
Problem mainly diagnosed by:    peter
lib/libc/yp/yplib.c