Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270056AbTGMAvF (ORCPT ); Sat, 12 Jul 2003 20:51:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270058AbTGMAvF (ORCPT ); Sat, 12 Jul 2003 20:51:05 -0400 Received: from ev2.cpe.orbis.net ([209.173.192.122]:36006 "EHLO srv.foo21.com") by vger.kernel.org with ESMTP id S270056AbTGMAvD (ORCPT ); Sat, 12 Jul 2003 20:51:03 -0400 Date: Sat, 12 Jul 2003 20:05:47 -0500 From: Eric Varsanyi To: Davide Libenzi Cc: Eric Varsanyi , Linux Kernel Mailing List Subject: Re: [Patch][RFC] epoll and half closed TCP connections Message-ID: <20030713010547.GB18203@srv.foo21.com> References: <20030712181654.GB15643@srv.foo21.com> <20030712194432.GE10450@mail.jlokier.co.uk> <20030712205114.GC15643@srv.foo21.com> <20030712211941.GD15643@srv.foo21.com> <20030712231147.GI15643@srv.foo21.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 597 Lines: 16 > > read(), returns 0 right away socket buffer is empty > > read will return -1 with errno=EAGAIN in that case, not zero. Yes, my mistake. So the real issue (of the patch) is just the original thing I posted about: you can't tell w/o another read() syscall if an EOF has piggybacked in on an EPOLLIN event. Thanks for being patient. -Eric Varsanyi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/