[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Problem with Webrick/HTTProxy

Yangsu Kim

3/17/2008 5:54:00 AM

I installed ruby 1.8.6 for Windows(Vista Home Premium).
And wrote some code like below.

-----------
require 'webrick'
require 'webrick/httpproxy'

s = WEBrick::HTTPProxyServer.new(
:BindAddress => '0.0.0.0',
:Port => 8080,
:Logger => WEBrick::Log::new($stderr, WEBrick::Log::DEBUG),
)
s.start
-----------

In local computer, there is no problem.
But in remote compute including same domain, it took too much
seconds(about 6 to 10) to read one page or file.

I installed 1.9.0, but It still took.

At the end, I installed VMWare with Windows XP.
And I installed Ruby 1.8.6 in Windows XP in VMWare.
After making port forwarding, I accessed guest os proxy server from host
os.
It still took too many seconds.

I couldnot find "what is wrong". Could you give me some solutions?
--
Posted via http://www.ruby-....

4 Answers

Yangsu Kim

3/17/2008 6:03:00 AM

0

P.S. There is no problem with other proxys like delegate, cc proxy.
--
Posted via http://www.ruby-....

GOTO Kentaro

3/17/2008 9:33:00 AM

0

That works fine on my vista with ruby 1.8.6p111 bundled in instantrails 2.0.
I'm guessing something firewall blocks 8080 for remote access.
Do the delegate or cc proxy works with same settings (port 8080)
on your vista machine?


Gotoken


On Mon, Mar 17, 2008 at 3:03 PM, Yangsu Kim <nrimbo@gmail.com> wrote:
> P.S. There is no problem with other proxys like delegate, cc proxy.
>
>
> --
> Posted via http://www.ruby-....
>
>

Yangsu Kim

3/17/2008 1:13:00 PM

0

I turned off all firewall.
And delegate and cc proxy worked well same settings (port 8080).
--
Posted via http://www.ruby-....

Joel VanderWerf

3/17/2008 9:51:00 PM

0

Yangsu Kim wrote:
> In local computer, there is no problem.
> But in remote compute including same domain, it took too much
> seconds(about 6 to 10) to read one page or file.

Shot in the dark: have you tried this?

Socket.do_not_reverse_lookup = true

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407