Thank you, Mr. John W Higgins.
I am not familiar with Ruby’s server/proxy stuff, so I simply follow
the example (presented in the page you recommended below) before
applying my actual case.
John W Higgins wrote:
Something nice and simple like this should work (
em-proxy/examples/line_interceptor.rb at master · igrigorik/em-proxy · GitHub)
I am not fully understand em-proxy but when executing the example ;
ruby examples/appserver.rb 81
ruby examples/line_interceptor.rb
And I encountered the error when running line_interceptor ;
ruby line_interceptor.rb
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in
`start_tcp_server’: no acceptor (RuntimeError)
from
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in
`start_server’
from
/usr/lib/ruby/gems/1.8/gems/em-proxy-0.1.2/lib/…/lib/em-proxy/proxy.rb:10:in
`start’
from
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
`call’
from
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
`run_machine’
from
/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
`run’
from
/usr/lib/ruby/gems/1.8/gems/em-proxy-0.1.2/lib/…/lib/em-proxy/proxy.rb:5:in
`start’
from line_interceptor.rb:6
Only modification I made was :
original> require ‘lib/emproxy’
modified>require ‘rubygems’
modified>require ‘em-proxy’
I think the problem is in either “appserver.rb” or eventmachine’s port
specification and googled to find :
http://whatdoesthiserrormean.com/errors/93
which currently under maintenance. I am sure it’s simple installation
matter, so I would wait for while until the site back and find reported
errors, but if you could suggest my em-proxy setting-up problem, I will
appreciate very much.
John