Weird hanging

3 views
Skip to first unread message

Mischa F

unread,
Sep 13, 2010, 2:49:26 PM9/13/10
to spor...@googlegroups.com
Hi Guys,

For some reason I can't get Spork to work the way that I think it should...

I made a test repo here: http://github.com/mischa/spork_test

You can clone it, bundle install, and they enter "bash go" to run my test. For me, it takes about 1:48 each time. It only takes about 6 seconds when running without DRb.


There are two places where it is slow:

1) Cucumber/cli/drb_client.rb
DRb.start_service("druby://:0") takes about 10 seconds. I was able to fix this by adding:

Socket.do_not_reverse_lookup=true

Above it.

2) This brought the time for time bundle exec cucumber down to 1:17. However, after quite a bit of searching, I found that it now waits in drb.rb (in Ruby libs) when trying to open a DRbTCPSocket (see attached). TCPSocket.open takes about a minute and twenty seconds. Is that normal? I assume not...am I missing something?


I would love any help possible with fixing this.

Best,

Mischa
Screen shot 2010-09-13 at 1.31.32 PM.png
Reply all
Reply to author
Forward
0 new messages