From owner-cvs-ports@FreeBSD.ORG Mon Feb 23 00:41:08 2009 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F15110656CC; Mon, 23 Feb 2009 00:41:08 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 745F78FC20; Mon, 23 Feb 2009 00:41:08 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1N0f8Jr023270; Mon, 23 Feb 2009 00:41:08 GMT (envelope-from stas@repoman.freebsd.org) Received: (from stas@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1N0f8fE023269; Mon, 23 Feb 2009 00:41:08 GMT (envelope-from stas) Message-Id: <200902230041.n1N0f8fE023269@repoman.freebsd.org> From: Stanislav Sedov Date: Mon, 23 Feb 2009 00:41:08 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/lang/ruby18/files patch-ext_socket_socket.c X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 00:41:09 -0000 stas 2009-02-23 00:41:08 UTC FreeBSD ports repository Added files: lang/ruby18/files patch-ext_socket_socket.c Log: - Ruby socket connect code seems to work unstably in case if connection to remote host was refused. FreeBSD connect(2) call returns EINVAL in that case and clears the error code, so there's no way to determine what happened. Reimplement ruby_connect via select call instead of polling the status by connect(2). This may also reduce overhead (though, not verified). Reported by: Saku Ytti Revision Changes Path 1.1 +105 -0 ports/lang/ruby18/files/patch-ext_socket_socket.c (new)