[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Problems w/ dRb on Windows...

Sonny Chee

7/31/2007 5:48:00 AM

Hey Guys,

I just downloaded the full dRb package (from Masatoshi SEKI's site) and
installed it on my windows box. I've tried running two of the samples
but in both cases, the console just hangs. I've tried the darray*.rb
and dchat*.rb programs (remote calculator and chat) with no luck. In
both cases, the server programs starts up and sits patiently. When I
start up the client's next they just hang... A sample is given below:

# server console
C:\home\examples\drb-2.0.4\sample>ruby dchats.rb
druby://Ceteganda:4118
[return] to exit.

# client console
C:\home\examples\drb-2.0.4\sample>ruby dchatc.rb druby://Ceteganda:4118
Sonny

Any suggestions and ideas would be greatly welcomed.

Sonny.
--
Posted via http://www.ruby-....

7 Answers

Eric Hodel

7/31/2007 6:36:00 AM

0

On Jul 30, 2007, at 22:48, Sonny Chee wrote:
> I just downloaded the full dRb package (from Masatoshi SEKI's site)
> and
> installed it on my windows box. I've tried running two of the samples
> but in both cases, the console just hangs. I've tried the darray*.rb
> and dchat*.rb programs (remote calculator and chat) with no luck. In
> both cases, the server programs starts up and sits patiently. When I
> start up the client's next they just hang... A sample is given
> below:
>
> # server console
> C:\home\examples\drb-2.0.4\sample>ruby dchats.rb
> druby://Ceteganda:4118
> [return] to exit.
>
> # client console
> C:\home\examples\drb-2.0.4\sample>ruby dchatc.rb druby://Ceteganda:
> 4118
> Sonny
>
> Any suggestions and ideas would be greatly welcomed.

Make sure that your forward and reverse DNS entries match for your
local machine. You'll probably want to turn of IPv6 too (unless
you're actually using it).

I don't know what tools let you do that on windows.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars



Robert Klemme

7/31/2007 6:51:00 AM

0

2007/7/31, Sonny Chee <sonny.chee@gmail.com>:
> Hey Guys,
>
> I just downloaded the full dRb package (from Masatoshi SEKI's site) and
> installed it on my windows box. I've tried running two of the samples
> but in both cases, the console just hangs. I've tried the darray*.rb
> and dchat*.rb programs (remote calculator and chat) with no luck. In
> both cases, the server programs starts up and sits patiently. When I
> start up the client's next they just hang... A sample is given below:
>
> # server console
> C:\home\examples\drb-2.0.4\sample>ruby dchats.rb
> druby://Ceteganda:4118
> [return] to exit.
>
> # client console
> C:\home\examples\drb-2.0.4\sample>ruby dchatc.rb druby://Ceteganda:4118
> Sonny
>
> Any suggestions and ideas would be greatly welcomed.

Might be related to blocking issues in the Windows console. Not
sure. I always use the cygwin version and did not experience those.

Kind regards

robert

Sonny Chee

8/1/2007 5:03:00 AM

0

Robert Klemme wrote:

> Might be related to blocking issues in the Windows console. Not
> sure. I always use the cygwin version and did not experience those.
>
> Kind regards
>
> robert

Hmmm... I just installed cywin and with no better luck :"(
--
Posted via http://www.ruby-....

Sonny Chee

8/1/2007 5:05:00 AM

0

Eric Hodel wrote:

> Make sure that your forward and reverse DNS entries match for your
> local machine. You'll probably want to turn of IPv6 too (unless
> you're actually using it).
>
> I don't know what tools let you do that on windows.

? So you're saying I need to configure my puter as DNS Server?

I've modified my hosts file so that localhost and Ceteganda both map to
127.0.0.1... alas no better luck. Any other suggestions?
--
Posted via http://www.ruby-....

Eric Hodel

8/1/2007 6:25:00 PM

0

On Jul 31, 2007, at 22:05, Sonny Chee wrote:
> Eric Hodel wrote:
>> Make sure that your forward and reverse DNS entries match for your
>> local machine. You'll probably want to turn of IPv6 too (unless
>> you're actually using it).
>>
>> I don't know what tools let you do that on windows.
>
> ? So you're saying I need to configure my puter as DNS Server?
>
> I've modified my hosts file so that localhost and Ceteganda both
> map to
> 127.0.0.1... alas no better luck. Any other suggestions?

Changing the hosts file should be good enough. Check to make sure
that it isn't blocking everything on gets, too, like Robert suggested.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars



Sonny Chee

8/1/2007 6:29:00 PM

0

Eric Hodel wrote:
>
> Changing the hosts file should be good enough. Check to make sure
> that it isn't blocking everything on gets, too, like Robert suggested.

Hey Eric,

How do I check if it is blocking on gets? How do I correct if it is?

Sonny.
--
Posted via http://www.ruby-....

Eric Hodel

8/2/2007 6:54:00 PM

0

On Aug 1, 2007, at 11:29, Sonny Chee wrote:
> Eric Hodel wrote:
>> Changing the hosts file should be good enough. Check to make sure
>> that it isn't blocking everything on gets, too, like Robert
>> suggested.
>
> Hey Eric,
>
> How do I check if it is blocking on gets? How do I correct if it is?

ruby -e 'Thread.start do loop do sleep 1; puts "."; end; end; gets'

Should print '.' until you hit enter.

If it doesn't, remove 'gets' from the examples.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars