diff options
author | brian <brian@FreeBSD.org> | 1999-11-30 23:52:37 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-11-30 23:52:37 +0000 |
commit | e483373e23122f0a1d3c0568ec6bedec3e5c1430 (patch) | |
tree | 76c1aa752df58118e7a6165e3ec5f29405020d34 /usr.sbin/sysinstall | |
parent | 047f08a518948b2395b1d36dd09e2d25c66e4d3d (diff) | |
download | FreeBSD-src-e483373e23122f0a1d3c0568ec6bedec3e5c1430.zip FreeBSD-src-e483373e23122f0a1d3c0568ec6bedec3e5c1430.tar.gz |
Change the way we transfer links (again). The previous
method avoided all race conditions, but suffered from
sometimes running out of buffer space if enough clients
were piled up at the same time.
Now, the client pushes the link descriptor, one end of a
socketpair() and the ppp version via sendmsg() at the
server. The server replies with a pid. The client then
transfers any link lock with uu_lock_txfr() and writev()s
the actual link contents. The socketpair is now the only
place we need to have large socket buffers and the bind()ed
socket can keep the default 4k buffer while still handling
around 90 racing clients.
Diffstat (limited to 'usr.sbin/sysinstall')
0 files changed, 0 insertions, 0 deletions