<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/rpc, branch release/2.0.5_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F2.0.5_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F2.0.5_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>1995-06-10T19:44:55Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>1995-06-10T19:44:55Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>1995-06-10T19:44:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fbe312c9f723b704a542825383058d1a2eb63f94'/>
<id>urn:sha1:fbe312c9f723b704a542825383058d1a2eb63f94</id>
<content type='text'>
'RELENG_2_0_5_RELEASE'.

This commit was manufactured to restore the state of the 2.0.5-RELEASE image.
Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
</content>
</entry>
<entry>
<title>Remove trailing whitespace.</title>
<updated>1995-05-30T05:51:47Z</updated>
<author>
<name>Rodney W. Grimes</name>
<email>rgrimes@FreeBSD.org</email>
</author>
<published>1995-05-30T05:51:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6c06b4e2aa2a28d1f0bbd29ecdce35aaaf600ce8'/>
<id>urn:sha1:6c06b4e2aa2a28d1f0bbd29ecdce35aaaf600ce8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>'Fix' for esoteric misfeature discovered while searching for another bug:</title>
<updated>1995-04-04T05:53:22Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>1995-04-04T05:53:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ef8f52ad53b82888744548f8fa46dbfae97977ac'/>
<id>urn:sha1:ef8f52ad53b82888744548f8fa46dbfae97977ac</id>
<content type='text'>
select() returns EINVAL if you try to feed it a value of FD_SETSIZE greater
that 256. You can apparently adjust this by specifying a larger value of
FD_SETSIZE when configuring your kernel. However, if you set the maximum
number of open file descriptors per process to some value greater than
the FD_SETSIZE value that select() expects, many selects() within the RPC
library code will be botched because _rpc_dtablesize() will return
invalid numbers. This is to say that it will return the upper descriptor
table size limit which can be much higher than 256. Unless select() is
prepared to expect this 'unusually' high value, it will fail. (A good
example of this can be seen with NIS enabled: if you type 'unlimit' at
the shell prompt and then run any command that does NIS calls, you'll
be bombarded with errors from clnttcp_create().)

A temporary fix for this is to clamp the value returned by _rpc_dtablesize()
at FD_SETSIZE (as defined in &lt;sys/types.h&gt; (256)). I suppose the Right
Thing would be to provide some mechanism for select() to dynamically
adjust itself to handle FD_SETSIZE values larger than 256, but it's a
bit late in the game for that. Hopefully 256 file descriptors will be enough
to keep RPC happy for now.
</content>
</entry>
<entry>
<title>Submitted by:	Sebastian Strollow</title>
<updated>1995-04-02T20:05:20Z</updated>
<author>
<name>Bill Paul</name>
<email>wpaul@FreeBSD.org</email>
</author>
<published>1995-04-02T20:05:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f9dde4e78c61726cd834d2a242d659295df8ef05'/>
<id>urn:sha1:f9dde4e78c61726cd834d2a242d659295df8ef05</id>
<content type='text'>
Obtained from: Casper H. Dik (by vay of Usenet)

Small patch to help improve NIS rebinding times (among other things):


&gt;From: casper@fwi.uva.nl (Casper H.S. Dik)
&gt;Newsgroups: comp.sys.sun.misc,comp.sys.sun.admin
&gt;Subject: FIX for slow rebinding of NIS.
&gt;Summary: a small change in libc makes life with NIS a lot easier.
&gt;Message-ID: &lt;1992Jan17.173905.11727@fwi.uva.nl&gt;
&gt;Date: 17 Jan 92 17:39:05 GMT
&gt;Sender: news@fwi.uva.nl
&gt;Organization: FWI, University of Amsterdam
&gt;Lines: 138
&gt;Nntp-Posting-Host: halo.fwi.uva.nl

Have you been plagued by long waits when your NIS server is rebooted?
READ ON!

Sun has a patch, but the README says:

********************* WARNING ******************************

  This is a new version of ypbind that never uses the NIS
  binding file to cache the servers binding. This will have
  the effect of fixing the current symptom. However, it might
  degrade the overall performance of the system when the
  server is available. This is most likely to happen on an
  overloaded server, which will cause the network to produce
  a broadcast storm.

*************************************************************

Therefor, I have produced another fix.

o What goes wrong.

When the NIS server is rebooted, ypserv will obtain different ports
to listen for RPC requests. All clients will continue to use the old
binding they obtained earlier. The NIS server will send ICMP dst unreachable
messages for the RPC requests that arrive at the old port. These ICMPs
are dropped on the floor and the client code will continue sending the
requests until the timer has expired. The small fix at the end of this
message will pick up these ICMP messages and deliver them to the RPC layer.

o Before and after.

I've tested this on some machines and this is the result:

	(kill and restart ypserv on the server)

original% time ypmatch user passwd
user:....
0.040u 0.090s 2:35.64 0.0% 0+126k 0+0io 0pf+0w (155 seconds elapsed time)

fixedhost% time ypmatch user passwd
user:....
0.050u 0.050s 0:10.20 0.9% 0+136k 0+0io 0pf+0w (10 seconds elapsed time)

Rebinding is almost instantaneous.

o Other benefits.
	RPC calls that use UDP as transport will no longer time out but
	will abort much sooner. (E.g., the remote host is unreachable or
	111/udp is filtered by an intermediate router)
</content>
</entry>
<entry>
<title>Fix authunix_maxgrouplist test</title>
<updated>1995-03-18T17:55:03Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>1995-03-18T17:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=798563cdfb29d05b2e10bb49ab593d03a7ba252b'/>
<id>urn:sha1:798563cdfb29d05b2e10bb49ab593d03a7ba252b</id>
<content type='text'>
Submitted by: Scott Hazen Mueller &lt;scott@zorch.sf-bay.org&gt;
</content>
</entry>
<entry>
<title>Comment out the man page of rstat.1 from Makefile.inc. There is no rstat</title>
<updated>1994-12-11T22:08:10Z</updated>
<author>
<name>Andreas Schulz</name>
<email>ats@FreeBSD.org</email>
</author>
<published>1994-12-11T22:08:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3cefada244ed5c3ddca2590c5ee341c11f84a3a5'/>
<id>urn:sha1:3cefada244ed5c3ddca2590c5ee341c11f84a3a5</id>
<content type='text'>
command available yet.
Changed an entry in getprcent.3 from rpcinfo(8C) to rpcinfo(8).
Changed an entry in getrpcport.3 from 3R to 3.
Changed two entries in rpc.3 from 3N to 3.
</content>
</entry>
<entry>
<title>Fix comparison of int against unsigned when checking error return</title>
<updated>1994-08-31T12:38:18Z</updated>
<author>
<name>Geoff Rehmet</name>
<email>csgr@FreeBSD.org</email>
</author>
<published>1994-08-31T12:38:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5e2e7b3e9641ecb2da026beee0e1cca645beda6b'/>
<id>urn:sha1:5e2e7b3e9641ecb2da026beee0e1cca645beda6b</id>
<content type='text'>
from recvfrom()
(This bug is also present in FreeBSD 1.1.5.1.)
Bug Reported by : Thomas.Koenig@ciw.uni-karlsruhe.de
Reviewed by:	geoff.
</content>
</entry>
<entry>
<title>Add back set_rpc_grouplistsize(), so mount_nfs compiles again.  Also</title>
<updated>1994-08-10T02:25:22Z</updated>
<author>
<name>Garrett Wollman</name>
<email>wollman@FreeBSD.org</email>
</author>
<published>1994-08-10T02:25:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6a39a56770c16b9975075c515ed6eb49dbc3cbe9'/>
<id>urn:sha1:6a39a56770c16b9975075c515ed6eb49dbc3cbe9</id>
<content type='text'>
fixed incipient bug wrt gid_t versus int.
</content>
</entry>
<entry>
<title>More directory cleanup after YP merge.</title>
<updated>1994-08-07T22:21:14Z</updated>
<author>
<name>Garrett Wollman</name>
<email>wollman@FreeBSD.org</email>
</author>
<published>1994-08-07T22:21:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=46cc41a1d8353e785d4705f42ba5ec3dd3cf3a51'/>
<id>urn:sha1:46cc41a1d8353e785d4705f42ba5ec3dd3cf3a51</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add Sun RPC documentation, which should eventually go into our PSD.</title>
<updated>1994-08-07T18:46:28Z</updated>
<author>
<name>Garrett Wollman</name>
<email>wollman@FreeBSD.org</email>
</author>
<published>1994-08-07T18:46:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9e4ded5d0e1054f0c364754e1d53942ff71fb8ba'/>
<id>urn:sha1:9e4ded5d0e1054f0c364754e1d53942ff71fb8ba</id>
<content type='text'>
(I think I'm up to part 6.)
</content>
</entry>
</feed>
