summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-11-30 23:52:37 +0000
committerbrian <brian@FreeBSD.org>1999-11-30 23:52:37 +0000
commite483373e23122f0a1d3c0568ec6bedec3e5c1430 (patch)
tree76c1aa752df58118e7a6165e3ec5f29405020d34 /usr.sbin/sysinstall
parent047f08a518948b2395b1d36dd09e2d25c66e4d3d (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud