From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Hajnoczi Subject: AF_VSOCK connection refused errno Date: Tue, 12 Dec 2017 15:53:52 +0000 Message-ID: <20171212155352.GA10090@stefanha-x1.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Cc: Dexuan Cui , netdev@vger.kernel.org To: Jorgen Hansen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38136 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256AbdLLPxx (ORCPT ); Tue, 12 Dec 2017 10:53:53 -0500 Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline When connect(2) fails because the peer is not listening the virtio vsock transport returns ECONNRESET. I believe the VMCI transport does the same (based on code inspection). Jorgen: Can you confirm this VMCI transport behavior? I'd like to change to ECONNREFUSED for all transports because developers will be surprised when they get ECONNRESET. It makes porting AF_INET code harder. On the other hand, it may be too late to fix this if there userspace applications that rely on ECONNRESET? I'm not aware of any such applications myself. Thanks, Stefan --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJaL/uQAAoJEJykq7OBq3PIfPAH/1FIbFF6JSGC3CKvua6A1t5v 8+E8sYpwi7yEYwPuHpXD7qejGiERkk6FxrTo9+DSxlzplk63QeMbHocQiwS91qoj rUWLLq7G5nOaBUv+0CKzoyDnsB40NhnD2D0xFGTthiwjnHd22kNS4OoR5jQVxUzB l9iiP+lC+6boDXlPGcRVpzs4wwZvKahMkeUdOoBnvt3SIL45faUzTZIbJypHsNEd O7sLsD0QzWliCmx5FyQ6JxF1aCEOSHKFQ2mGTnUn8e4Y6EZfQy8Pnukh4SXV1tcz Yr4uTmQL/nKA77utRAx1JVTkWrJs36SGfKb00aINWrP+TyPMx6+DnOYKPl9/91w= =q3ll -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--