diff options
author | Simon L. B. Nielsen <simon@FreeBSD.org> | 2007-03-04 10:30:43 +0000 |
---|---|---|
committer | Simon L. B. Nielsen <simon@FreeBSD.org> | 2007-03-04 10:30:43 +0000 |
commit | 2861f68d489fd7415d8ee6f2961a2b2f3b0acca9 (patch) | |
tree | 94f4952551f8f72bd14789cb16b83b54b44503c5 /lib/libc/yp | |
parent | 0dc55f7681b971db7107ecff762a8a5569b020ba (diff) | |
download | src-2861f68d489fd7415d8ee6f2961a2b2f3b0acca9.tar.gz src-2861f68d489fd7415d8ee6f2961a2b2f3b0acca9.zip |
Notes
Diffstat (limited to 'lib/libc/yp')
-rw-r--r-- | lib/libc/yp/yplib.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libc/yp/yplib.c b/lib/libc/yp/yplib.c index 74a791e23517..cc0a511ecd33 100644 --- a/lib/libc/yp/yplib.c +++ b/lib/libc/yp/yplib.c @@ -103,7 +103,7 @@ void *ypresp_data; static void _yp_unbind(struct dom_binding *); struct dom_binding *_ypbindlist; static char _yp_domain[MAXHOSTNAMELEN]; -int _yplib_timeout = 10; +int _yplib_timeout = 20; static mutex_t _ypmutex = MUTEX_INITIALIZER; #define YPLOCK() mutex_lock(&_ypmutex); @@ -823,6 +823,14 @@ again: return (YPERR_DOMAIN); } + /* + * Set low retry timeout to realistically handle UDP packet + * loss for yp_next packet bursts. + */ + tv.tv_sec = 1; + tv.tv_usec = 0; + clnt_control(ysd->dom_client, CLSET_RETRY_TIMEOUT, (char*)&tv); + tv.tv_sec = _yplib_timeout; tv.tv_usec = 0; |