Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755300AbYAISBz (ORCPT ); Wed, 9 Jan 2008 13:01:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752174AbYAISBp (ORCPT ); Wed, 9 Jan 2008 13:01:45 -0500 Received: from relay1.sgi.com ([192.48.171.29]:50626 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751844AbYAISBo (ORCPT ); Wed, 9 Jan 2008 13:01:44 -0500 Date: Wed, 9 Jan 2008 12:01:42 -0600 (CST) From: Brent Casavant Reply-To: Brent Casavant To: Tetsuo Handa cc: netdev@vger.kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: Re: AF_UNIX MSG_PEEK bug? In-Reply-To: <200801092004.IJJ48416.FVQOtOLFSOJHMF@I-love.SAKURA.ne.jp> Message-ID: References: <200801092004.IJJ48416.FVQOtOLFSOJHMF@I-love.SAKURA.ne.jp> User-Agent: Alpine 1.00 (BSF 882 2007-12-20) Organization: "Silicon Graphics, Inc." MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 793 Lines: 21 On Wed, 9 Jan 2008, Tetsuo Handa wrote: > Did you try MSG_WAITALL flag? See "man 2 recv". > A TCP socket handles data in bytes. > You cannot complain if the amount received by recv() is smaller than expected > unless you use MSG_WAITALL flag. Yes. It made no difference, as noted in the comments in the provided test program. Brent -- Brent Casavant All music is folk music. I ain't bcasavan@sgi.com never heard a horse sing a song. Silicon Graphics, Inc. -- Louis Armstrong -- 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/