From: Alexey Kuznetsov Subject: Re: [RFC PATCH] network: return errors if we know tcp_connect failed Date: Mon, 15 Nov 2010 23:00:30 +0300 Message-ID: <20101115200030.GA14551@ms2.inr.ac.ru> References: <20101111210341.31350.86916.stgit@paris.rdu.redhat.com> <00c201cb81eb$84e18160$8ea48420$@com> <4CDCEE65.3060105@trash.net> <017301cb82bf$54540cf0$fcfc26d0$@com> <4CE10C2A.1050801@trash.net> <1289836066.14282.7.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Patrick McHardy , Hua Zhong , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, pekkas@netcore.fi, jmorris@namei.org, yoshfuji@linux-ipv6.org To: Eric Paris Return-path: Content-Disposition: inline In-Reply-To: <1289836066.14282.7.camel@localhost.localdomain> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Hello! On Mon, Nov 15, 2010 at 10:47:46AM -0500, Eric Paris wrote: > Well I'm (I guess?) surprised that the --reject-with icmp doesn't do > anything with a local outgoing connection Yeah. This was "an obvious surpise": for local socket the first icmp error always arrives on locked socket and gets dropped. I even forgot about this (tcp-reset still works ok due to backlog) This makes the idea to respect error more attractive. Alexey