Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268368AbUJPKYt (ORCPT ); Sat, 16 Oct 2004 06:24:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268382AbUJPKYt (ORCPT ); Sat, 16 Oct 2004 06:24:49 -0400 Received: from willy.net1.nerim.net ([62.212.114.60]:15365 "EHLO willy.net1.nerim.net") by vger.kernel.org with ESMTP id S268368AbUJPKYs (ORCPT ); Sat, 16 Oct 2004 06:24:48 -0400 Date: Sat, 16 Oct 2004 12:24:33 +0200 From: Willy Tarreau To: Robert White Cc: "'David S. Miller'" , "'Olivier Galibert'" , linux-kernel@vger.kernel.org Subject: Re: UDP recvmsg blocks after select(), 2.6 bug? Message-ID: <20041016102433.GA17984@alpha.home.local> References: <20041008064104.GF19761@alpha.home.local> 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: 1016 Lines: 23 On Fri, Oct 15, 2004 at 03:42:55PM -0700, Robert White wrote: > -----Original Message----- > From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-owner@vger.kernel.org] > On Behalf Of Willy Tarreau > > > As I asked in a previous mail in this overly long thread, why not returning > > zero bytes at all. It is perfectly valid to receive an UDP packet with 0 > > Zero bytes is "end of file". Don't go trying to co-opt end of file. That way lies > madness and despair. Please explain me what "end of file" means with UDP. If your UDP-based app expects to receive a zero when the other end stops transmitting, then it might wait for a very long time. As opposed to TCP, there's no FIN control flag to tell the remote host that you sent your last packet. Willy - 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/