Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ruby from source on Leopard excruciatingly slow internet talk
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  19 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Chris Shea  
View profile  
 More options Jan 12 2008, 7:39 pm
Newsgroups: comp.lang.ruby
From: Chris Shea <ch...@ruby.tie-rack.org>
Date: Sat, 12 Jan 2008 19:39:04 -0500
Local: Sat, Jan 12 2008 7:39 pm
Subject: Ruby from source on Leopard excruciatingly slow internet talk
Just a couple of days ago I "upgraded" from Tiger to Leopard, and the
most horrible thing about it is that anything Ruby does over the
internet is so very very slow now. `which ruby` tells me I'm still
using my from-source install in /usr/local/bin, as does `which gem`.

I have a script that scrapes some stuff from craigslist that now takes
way too long (I might as well look myself). And my heart sinks when I
see "Updating metadata for 176 gems from http://gems.rubyforge.org".
That seriously takes forever (a little hyperbole). Nothing else is
suffering huge network slowness. Even a simple "require 'open-uri';
open('http://www.google.com')" takes 15 seconds (but half a second
tops in a browser). This all happened at a reasonable pace just a few
days ago. Other ruby installations on other machines (with other
operating systems) talk to the internet with appropriate quickness.

I know one other person who's experienced this, but with no solution.
Anyone else? I haven't found similar stories, but maybe that's because
no one else is having this problem, or the solution is so obvious no
one bothers to mention it.

Any pointers or ideas would be hugely appreciated.

Thanks,
Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
s.ross  
View profile  
 More options Jan 12 2008, 7:45 pm
Newsgroups: comp.lang.ruby
From: "s.ross" <cwdi...@gmail.com>
Date: Sat, 12 Jan 2008 19:45:14 -0500
Local: Sat, Jan 12 2008 7:45 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet talk
This may not help you but I was having a slow-as-molasses DNS lookup  
issue when I upgraded to Leopard. I disabled IPv6 and it sped things  
up considerably. Anyhow, it's a change that might help and is easy to  
undo.

HTH

On Jan 12, 2008, at 4:39 PM, Chris Shea wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ezra Zygmuntowicz  
View profile  
 More options Jan 12 2008, 7:47 pm
Newsgroups: comp.lang.ruby
From: Ezra Zygmuntowicz <ezmob...@gmail.com>
Date: Sat, 12 Jan 2008 19:47:44 -0500
Local: Sat, Jan 12 2008 7:47 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet talk

On Jan 12, 2008, at 4:39 PM, Chris Shea wrote:

        Try adding this to your script:

# for OSX compatibility
Socket.do_not_reverse_lookup = true

Cheers-
- Ezra Zygmuntowicz
-- Founder & Software Architect
-- e...@engineyard.com
-- EngineYard.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pierre-Yves Gérardy  
View profile  
 More options Jan 14 2008, 4:47 pm
Newsgroups: comp.lang.ruby
From: "Pierre-Yves Gérardy" <pyg...@gmail.com>
Date: Mon, 14 Jan 2008 13:47:13 -0800 (PST)
Local: Mon, Jan 14 2008 4:47 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet talk

>         Try adding this to your script:

> # for OSX compatibility
> Socket.do_not_reverse_lookup = true

Any idea where to patch rubygems?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Ruby from source on Leopard excruciatingly slow internet" by Roger Pack
Roger Pack  
View profile  
 More options Jan 14 2008, 5:45 pm
Newsgroups: comp.lang.ruby
From: Roger Pack <rogerpack2...@gmail.com>
Date: Mon, 14 Jan 2008 17:45:08 -0500
Local: Mon, Jan 14 2008 5:45 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet
could try the macport ruby

Chris Shea wrote:
> Just a couple of days ago I "upgraded" from Tiger to Leopard, and the
> most horrible thing about it is that anything Ruby does over the
> internet is so very very slow now. `which ruby` tells me I'm still
> using my from-source install in /usr/local/bin, as does `which gem`.

--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
s.ross  
View profile  
 More options Jan 14 2008, 11:14 pm
Newsgroups: comp.lang.ruby
From: "s.ross" <cwdi...@gmail.com>
Date: Mon, 14 Jan 2008 23:14:20 -0500
Local: Mon, Jan 14 2008 11:14 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet
I've had almost exactly the same experience. Really slow internet  
connectivity in general. I think I have it narrowed down to wireless  
using WEP. I hooked up an old fashioned ethernet cable (remember  
those?) and everything is lickety split fast. HTH.

On Jan 14, 2008, at 2:45 PM, Roger Pack wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ara.t.howard  
View profile  
 More options Jan 14 2008, 11:22 pm
Newsgroups: comp.lang.ruby
From: "ara.t.howard" <ara.t.how...@gmail.com>
Date: Mon, 14 Jan 2008 23:22:23 -0500
Local: Mon, Jan 14 2008 11:22 pm
Subject: [OT] Re: Ruby from source on Leopard excruciatingly slow internet

On Jan 14, 2008, at 9:14 PM, s.ross wrote:

> I've had almost exactly the same experience. Really slow internet  
> connectivity in general. I think I have it narrowed down to  
> wireless using WEP. I hooked up an old fashioned ethernet cable  
> (remember those?) and everything is lickety split fast. HTH.

me too.  this a leoTard issue.  in general i'm finding it to be  
sucking the big one for networking - you can see the same behavior  
with curl as you'll find in ruby.

i also disabled ipv6 and am using opendns for lookups.  still slower  
than tiger though.

a @ http://codeforpeople.com/
--
it is not enough to be compassionate.  you must act.
h.h. the 14th dalai lama


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Ohnstad  
View profile  
 More options Jan 15 2008, 1:12 am
Newsgroups: comp.lang.ruby
From: Andrew Ohnstad <andrew.ohns...@gmail.com>
Date: Tue, 15 Jan 2008 01:12:30 -0500
Local: Tues, Jan 15 2008 1:12 am
Subject: Re: Ruby from source on Leopard excruciatingly slow internet

I had this problem too and found some bogus DNS servers had creeped into
Network Setup, even though everything had been set to DCHP before (and I
assumed after) the upgrade.  My guess was that network was waiting for
them to timeout before contacting my real DNS server.  Key symptom is
eons to start loading a page/download a file/whatever, but normal
performance once the activity actually starts.

I know it sounds noob, but check to make sure there aren't any
unexpected DNS Servers in System Prefs -> Network -> Advanced (for the
correct interface) -> DNS.
--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
s.ross  
View profile  
 More options Jan 15 2008, 1:29 am
Newsgroups: comp.lang.ruby
From: "s.ross" <cwdi...@gmail.com>
Date: Tue, 15 Jan 2008 01:29:11 -0500
Local: Tues, Jan 15 2008 1:29 am
Subject: Re: [OT] Re: Ruby from source on Leopard excruciatingly slow internet
[Note:  parts of this message were removed to make it a legal post.]

On Jan 14, 2008, at 8:22 PM, ara.t.howard wrote:

> am using opendns for lookups

I tried opendns until the first bad lookup (address not in dns) when  
opendns hijacked the request and redirected my browser to an ad. It  
just seems creepy to have your dns lookups spoofed like that.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frederick Cheung  
View profile  
 More options Jan 15 2008, 5:52 am
Newsgroups: comp.lang.ruby
From: Frederick Cheung <frederick.che...@gmail.com>
Date: Tue, 15 Jan 2008 05:52:55 -0500
Local: Tues, Jan 15 2008 5:52 am
Subject: Re: [OT] Re: Ruby from source on Leopard excruciatingly slow internet

On 15 Jan 2008, at 04:22, ara.t.howard wrote:

> On Jan 14, 2008, at 9:14 PM, s.ross wrote:

>> I've had almost exactly the same experience. Really slow internet  
>> connectivity in general. I think I have it narrowed down to  
>> wireless using WEP. I hooked up an old fashioned ethernet cable  
>> (remember those?) and everything is lickety split fast. HTH.

> me too.  this a leoTard issue.  in general i'm finding it to be  
> sucking the big one for networking - you can see the same behavior  
> with curl as you'll find in ruby.

> i also disabled ipv6 and am using opendns for lookups.  still slower  
> than tiger though.

I had a problem like that. For some reason removing all locations from  
the network prefs and adding them back in fixed it for some reason.

Fred


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Ruby from source on Leopard excruciatingly slow internet talk" by Bryce Roney
Bryce Roney  
View profile  
 More options Feb 3 2008, 7:28 pm
Newsgroups: comp.lang.ruby
From: Bryce Roney <bryce...@gmail.com>
Date: Sun, 3 Feb 2008 19:28:29 -0500
Local: Sun, Feb 3 2008 7:28 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet talk
I am having this problem too, I've tried disabling IPv6 and I've put the
Socket. thing in my configuration and it's still slow.
--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Ruby from source on Leopard excruciatingly slow internet" by Roger Pack
Roger Pack  
View profile  
 More options Feb 4 2008, 12:57 am
Newsgroups: comp.lang.ruby
From: Roger Pack <rogerpack2...@gmail.com>
Date: Mon, 4 Feb 2008 00:57:25 -0500
Local: Mon, Feb 4 2008 12:57 am
Subject: Re: Ruby from source on Leopard excruciatingly slow internet

Bryce Roney wrote:
> I am having this problem too, I've tried disabling IPv6 and I've put the
> Socket. thing in my configuration and it's still slow.

could try
require 'resolv-replace'

--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bryce Roney  
View profile  
 More options Feb 4 2008, 1:23 am
Newsgroups: comp.lang.ruby
From: Bryce Roney <bryce...@gmail.com>
Date: Mon, 4 Feb 2008 01:23:32 -0500
Local: Mon, Feb 4 2008 1:23 am
Subject: Re: Ruby from source on Leopard excruciatingly slow internet

Roger Pack wrote:
> Bryce Roney wrote:
>> I am having this problem too, I've tried disabling IPv6 and I've put the
>> Socket. thing in my configuration and it's still slow.

> could try
> require 'resolv-replace'

Then it comes up with this:
LoadError: no such file to load -- resolve-replace
  from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rub ygems/custom_require.rb:27:in
`gem_original_require'
  from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rub ygems/custom_require.rb:27:in
`require'
  from (irb):1

--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roger Pack  
View profile  
 More options Feb 4 2008, 12:03 pm
Newsgroups: comp.lang.ruby
From: Roger Pack <rogerpack2...@gmail.com>
Date: Mon, 4 Feb 2008 12:03:01 -0500
Local: Mon, Feb 4 2008 12:03 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet
require 'resolv-replace'
--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Ruby from source on Leopard excruciatingly slow internet talk" by Chris Shea
Chris Shea  
View profile  
 More options Feb 4 2008, 3:02 pm
Newsgroups: comp.lang.ruby
From: Chris Shea <cms...@gmail.com>
Date: Mon, 4 Feb 2008 12:02:35 -0800 (PST)
Local: Mon, Feb 4 2008 3:02 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet talk
On Jan 12, 5:39 pm, Chris Shea <ch...@ruby.tie-rack.org> wrote:

> Any pointers or ideas would be hugely appreciated.

After some pointers and ideas, things are running much faster. What
I've done:

1. Disabled IPv6 (thanks s.ross)
2. OpenDNS for lookup (thanks Ara, though those redirects on failed
lookups suck)
3. Started requiring 'resolv-replace' (thanks Roger Pack)

I'm using Ruby and the Internet together at near Tiger speeds. I added
"require 'resolv-replace'" to /usr/local/bin/gem as well, and I'm no
longer scared of "Updating metadata for 132 gems from http://gems.rubyforge.org"

Thanks everyone. Hopes this thread helps anyone else having similar
issues.

Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Ruby from source on Leopard excruciatingly slow internet" by Roger Pack
Roger Pack  
View profile  
 More options Feb 5 2008, 10:31 pm
Newsgroups: comp.lang.ruby
From: Roger Pack <rogerpack2...@gmail.com>
Date: Tue, 5 Feb 2008 22:31:20 -0500
Local: Tues, Feb 5 2008 10:31 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet

Roger Pack wrote:
> require 'resolv-replace'

somehow my editing /etc/hosts once (took some hosts out), worked faster,
then adding them back in and it still worked fast. Weird.
Somebody elsewhere also said that doing the 'assist me' in networking
preferences fixed their problem.  Who knows what it really is :)
-Roger
--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roger Pack  
View profile  
 More options Feb 5 2008, 11:00 pm
Newsgroups: comp.lang.ruby
From: Roger Pack <rogerpack2...@gmail.com>
Date: Tue, 5 Feb 2008 23:00:41 -0500
Local: Tues, Feb 5 2008 11:00 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet
laughably, the following script (which overwrites your /etc/hosts file
periodically with one or two entries)
seems to help.
I probably wouldn't really recommend this unless you really know what
you're doing, but here it is

count = 0
loop do
 a = File.open '/etc/hosts', 'w'
 a.write '127.0.0.1  localhost' + "\n"
 a.write '127.0.0.1  localhost2' + "\n" if (count%2) == 1
 a.close
 sleep 0.5
 count += 1
end

(save this as a file like 'renew_etc.rb', save a copy of your /etc/hosts
file somewhere, then run
sudo ruby renew_etc.rb)
You could try changing the sleep value.
Note that running this may have unforeseen effects.
I wouldn't believe it if it didn't seem to work.

Note that the default /etc/hosts file is
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1  localhost
255.255.255.255  broadcasthost
::1             localhost
fe80::1%lo0  localhost

if you need to recreate it.
GL.
-Roger
--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Ruby from source on Leopard excruciatingly slow internet talk" by Bryce Roney
Bryce Roney  
View profile  
 More options Feb 8 2008, 2:29 am
Newsgroups: comp.lang.ruby
From: Bryce Roney <bryce...@gmail.com>
Date: Fri, 8 Feb 2008 02:29:04 -0500
Local: Fri, Feb 8 2008 2:29 am
Subject: Re: Ruby from source on Leopard excruciatingly slow internet talk
I had success with
require 'resolv-replace'
# for OSX compatibility
Socket.do_not_reverse_lookup = true

is there a way I can have this enabled by default accross all scripts?
--
Posted via http://www.ruby-forum.com/.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Ruby from source on Leopard excruciatingly slow internet" by Roger Pack
Roger Pack  
View profile  
 More options Feb 8 2008, 12:34 pm
Newsgroups: comp.lang.ruby
From: Roger Pack <rogerpack2...@gmail.com>
Date: Fri, 8 Feb 2008 12:34:13 -0500
Local: Fri, Feb 8 2008 12:34 pm
Subject: Re: Ruby from source on Leopard excruciatingly slow internet

Bryce Roney wrote:
> I had success with
> require 'resolv-replace'
> # for OSX compatibility
> Socket.do_not_reverse_lookup = true

> is there a way I can have this enabled by default accross all scripts?

you could add that code to the lib included when you run
require 'rubygems'
as that is always loaded for app
--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »