Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 6 Aug 2002 22:07:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 6 Aug 2002 22:07:34 -0400 Received: from sex.inr.ac.ru ([193.233.7.165]:43420 "HELO sex.inr.ac.ru") by vger.kernel.org with SMTP id ; Tue, 6 Aug 2002 22:07:33 -0400 From: kuznet@ms2.inr.ac.ru Message-Id: <200208070210.GAA26429@sex.inr.ac.ru> Subject: Re: multiple connect on a socket To: vasisht@eden.RUtgers.EDU (Vasisht Tadigotla) Date: Wed, 7 Aug 2002 06:10:48 +0400 (MSD) Cc: linux-kernel@vger.kernel.org In-Reply-To: from "Vasisht Tadigotla" at Aug 7, 2 05:45:01 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 652 Lines: 18 Hello! > Shouldn't it throw an error when I > try to connect to it a second time ? Am I missing something here. Yes, it used to return success once upon connection is complete. When the connection is in progress, it returns EALREADY, after this it returns EISCONN, but success is indicated when it goes from unconnected to connected state. Maybe, this is wrong but it used to work in this way. Alexey - 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/