From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932327AbVLMUm5 (ORCPT ); Tue, 13 Dec 2005 15:42:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751260AbVLMUm5 (ORCPT ); Tue, 13 Dec 2005 15:42:57 -0500 Received: from zproxy.gmail.com ([64.233.162.195]:41862 "EHLO zproxy.gmail.com") by vger.kernel.org with ESMTP id S1751256AbVLMUm4 convert rfc822-to-8bit (ORCPT ); Tue, 13 Dec 2005 15:42:56 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HdLsDL+CvDttl+dH1fDYyb1aEWo81F+32loUwTQ5E0P6h5iqKyDZJ5BuWfgsrpcLUkWtmgd+uY5xrb1mphJuhzf3sLBNxKlqZSjLHW2iWTcV7RmUzOlEvAVLnGRHPIJIGf8btrersqIOpR9mxaH7KP0OvhcpBcV2Vm13t6gTRNk= Message-ID: Date: Tue, 13 Dec 2005 20:42:49 +0000 From: Filipe Cabecinhas To: "linux-os (Dick Johnson)" Subject: Re: Possible problem in fcntl Cc: Linux kernel , Nuno Lopes , Renato Crissstomo In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org > How do you know what wget did after the connection was refused? > Didn't it close its socket when returning to the shell? If we have the call to fcntl, the following happens: Telnet: SYN Server: SYN, ACK T: ACK S: FIN, ACK T: FIN, ACK S: ACK There was no data exchanged. It just accepted the connection, and then finished it. Without the call to fcntl everything goes normally: T: SYN S: SYN, ACK T: ACK T: PSH, ACK (HTTP request) S: ACK S: PSH, ACK (HTTP header) T: ACK S: PSH, ACK (data) T: ACK S: FIN, ACK T: ACK T: FIN, ACK S: ACK Thanks in advance, Filipe Cabecinhas