Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 15:52:38 -0800 (PST)
From:      Brian Somers <brian@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.sbin/ppp bundle.c command.c mp.c
Message-ID:  <199911302352.PAA56954@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
brian       1999/11/30 15:52:37 PST

  Modified files:
    usr.sbin/ppp         bundle.c command.c mp.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.78      +84 -29    src/usr.sbin/ppp/bundle.c
  1.225     +2 -2      src/usr.sbin/ppp/command.c
  1.34      +5 -15     src/usr.sbin/ppp/mp.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911302352.PAA56954>