From owner-freebsd-current Fri Jan 10 20: 0: 8 2003 Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id B6F3737B401; Fri, 10 Jan 2003 20:00:06 -0800 (PST) Date: Fri, 10 Jan 2003 20:00:06 -0800 From: Juli Mallett To: Peter Wemm Cc: Tim Robbins , current@FreeBSD.org Subject: Re: Serious issues with kqueue on sockets on CURRENT. Message-ID: <20030110200006.A86214@FreeBSD.org> References: <20030110215736.A31727@dilbert.robbins.dropbear.id.au> <20030111034649.6A35D2A89E@canning.wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030111034649.6A35D2A89E@canning.wemm.org>; from peter@wemm.org on Fri, Jan 10, 2003 at 07:46:49PM -0800 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * De: Peter Wemm [ Data: 2003-01-10 ] [ Subjecte: Re: Serious issues with kqueue on sockets on CURRENT. ] > In case anybody wants to play, I seem to recall some changes in uipc_socket.c > that caused some problems (totally hosed the resolver) a while back: > ---------------------------- > revision 1.134 > date: 2002/11/01 21:27:59; author: kbyanc; state: Exp; lines: +1 -1 > Track the number of non-data chararacters stored in socket buffers so that > the data value returned by kevent()'s EVFILT_READ filter on non-TCP > sockets accurately reflects the amount of data that can be read from the > sockets by applications. > > PR: 30634 > Reviewed by: -net, -arch > Sponsored by: NTT Multimedia Communications Labs > MFC after: 2 weeks > ---------------------------- > revision 1.136 > date: 2002/11/05 18:48:46; author: kbyanc; state: Exp; lines: +1 -1 > Fix filt_soread() to properly flag a kevent when a 0-byte datagram is > received. > > Verified by: dougb, Manfred Antar > Sponsored by: NTT Multimedia Communications Labs > ---------------------------- > > Is this related? I think so, but I think the latter bandaids the brokenness of the former, to let non-existant 0-byte things occur. People say this should maybe only happen once, but I let my code just return in that case, and send a message to the console. Wasn't pretty, for one connection. How do we read the 0-byte datagram, after all? Thanx, juli. -- Juli Mallett AIM: BSDFlata -- IRC: juli on EFnet. OpenDarwin, Mono, FreeBSD Developer. ircd-hybrid Developer, EFnet addict. FreeBSD on MIPS-Anything on FreeBSD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message