From owner-freebsd-hackers Thu Aug 20 04:48:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA05542 for freebsd-hackers-outgoing; Thu, 20 Aug 1998 04:48:25 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA05533 for ; Thu, 20 Aug 1998 04:48:22 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id MAA26820; Thu, 20 Aug 1998 12:02:24 +0200 From: Luigi Rizzo Message-Id: <199808201002.MAA26820@labinfo.iet.unipi.it> Subject: Re: combined accept&read To: mike@smith.net.au (Mike Smith) Date: Thu, 20 Aug 1998 12:02:23 +0200 (MET DST) Cc: oppermann@pipeline.ch, hackers@FreeBSD.ORG In-Reply-To: <199808192319.XAA01112@dingo.cdrom.com> from "Mike Smith" at Aug 19, 98 11:18:51 pm X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > "accept&read combined call is something else we're toying with. Very > > often we get a poll/select broken because there's data coming in on a > > socket, and most of the time there's already data in the socket > > buffers. Being able to do the accept() and read() in a single call > > should be beneifital." it is not very clear to me what the above means -- perhaps that in the sequence select() accept() select() read() the second select could be saved ? In that case, one could always write select() accept() if (fionread()) read() at the little price of one simple syscall, and not a full select with its overhead for scanning all descriptors. cheers luigi -----------------------------+-------------------------------------- Luigi Rizzo | Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it | Universita' di Pisa tel: +39-50-568533 | via Diotisalvi 2, 56126 PISA (Italy) fax: +39-50-568522 | http://www.iet.unipi.it/~luigi/ _____________________________|______________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message