Problem with Webrick/HTTProxy

Y

Yangsu Kim

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?
 
G

GOTO Kentaro

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
 
Y

Yangsu Kim

I turned off all firewall.
And delegate and cc proxy worked well same settings (port 8080).
 
J

Joel VanderWerf

Yangsu said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top