From owner-freebsd-questions@FreeBSD.ORG Mon Oct 10 07:53:27 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 989FD1065670 for ; Mon, 10 Oct 2011 07:53:27 +0000 (UTC) (envelope-from subbsd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 55C738FC0A for ; Mon, 10 Oct 2011 07:53:26 +0000 (UTC) Received: by vcbf13 with SMTP id f13so6178420vcb.13 for ; Mon, 10 Oct 2011 00:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=68BKe+U9Ur92VUsGrLBzS8ySfzIf6w0zNErnKT/8hmo=; b=p24dqbspq/q/UKh29jAfS8lgCVV1rA+AY3HOSmej8We6y6X2rzh38L5l7FfCoU5LiO 2jWasFjH6S0bZKO8VP6IFLtQoeUw6+8WRb5ounSLrbNcf+Z21t0aJj1yXNP7mPWFNvjX 85qy2bknaVxp8sffcdXDs0KzUcz4puokQID0U= MIME-Version: 1.0 Received: by 10.220.57.11 with SMTP id a11mr1359206vch.4.1318231644979; Mon, 10 Oct 2011 00:27:24 -0700 (PDT) Received: by 10.220.160.197 with HTTP; Mon, 10 Oct 2011 00:27:24 -0700 (PDT) In-Reply-To: References: Date: Mon, 10 Oct 2011 11:27:24 +0400 Message-ID: From: Subbsd To: FreeBSD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: ruby 1.9 with nonblocking connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2011 07:53:27 -0000 Hello, I'm trying to use selenium in ruby (ruby-1.9.2.290_2,1) script, but get an error like this: /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.8.0/lib/selenium/web= driver/common/socket_poller.rb:63:in `connect_nonblock': Invalid argument - connect(2) (Errno::EINVAL) =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/common/socket_poller.rb:63:in `listening?' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/common/socket_poller.rb:23:in `block in connected?' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/common/socket_poller.rb:86:in `with_timeout' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/common/socket_poller.rb:23:in `connected?' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/firefox/launcher.rb:75:in `connect_until_stable' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/firefox/launcher.rb:37:in `block in launch' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in `locked' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/firefox/launcher.rb:32:in `launch' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/firefox/bridge.rb:19:in `initialize' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/common/driver.rb:29:in `new' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver/common/driver.rb:29:in `for' =A0 =A0 =A0 =A0from /usr/local/lib/ruby/gems/1.9/gems/selenium-webdriver-2.= 8.0/lib/selenium/webdriver.rb:81:in `for' =A0 =A0 =A0 =A0from test.rb:8:in `
' at the 63 I see the following line on socket_poller.rb: 62 =A0 =A0 =A0 =A0 =A0begin 63 =A0 =A0 =A0 =A0 =A0 =A0sock.connect_nonblock sockaddr 64 =A0 =A0 =A0 =A0 =A0rescue Errno::EINPROGRESS any idea of what could be the reason for such behavior? Thanks.