Need help with tunnel connection issue in net-ssh


D

Delano Mandelbaum

Hello!

I need some help resolving an issue with running several connections
simultaneously through a single tunnel connection. From the bug
report:

Where I noticed an issue is when utilized a forwarded port created
with Net::SSH to connect a local port to a remote host http proxy
server. A browser, then configured locally to use said local port will
obviously utilize alot of simultaneous connections as it makes
requests through the connection. We're noticing that if you're "nice"
and allow pages to load (connections to be created, used, then
shutdown gracefully) you're fine - but if you interrupt the connection
by browsing to other links in mid-download, or hit your stop button,
we see "connection forcibly reset" exceptions from buffered_io.rb's
fill method, and then the forwarded connection is basically locked up
until you re-establish.

And there's a script to help reproduce it.
http://github.com/net-ssh/net-ssh/blob/2.0/support/ssh_tunnel_bug.rb

The bug report is here:
http://net-ssh.lighthouseapp.com/pr...forcibly-closed-by-the-remote-host#ticket-7-3

If someone can help resolve it I'll incorporate the fix into the next
release (with kudos, of course!).

Delano
 
Ad

Advertisements


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

Top