Method: TCPProxy#thread_main
- Defined in:
- lib/tcp_proxy.rb
#thread_main ⇒ Object
Internal thread that pumps messages from and to ports.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/tcp_proxy.rb', line 74 def thread_main loop do accept_connections if @accept_new forward_data break if @shutdown end rescue Exception => ex p [:uncaught, ex] ex.backtrace.each do |line| puts line end raise end |