On Thu, May 23, 2013 at 10:58:32AM +0300, Lars Nooden wrote:
> On Wed, 22 May 2013, Lars Nooden wrote:
> [snip]
> > However, the remote machine is still able to use the forwarded port until 
> > the connection is finally closed.  The same syntax seems to shutdown 
> > regular (-L) forwarded ports, just not for reverse (-R) forwarding.  What 
> > am I missing?  
> 
> What I was missing was patience.  With Chromium and Firefox, the 
> connection is kept open for only a short while longer, but definitely not 
> immediately shut down.  With other programs, the tunnel seems to shut 
> right away.

The port should stop listening immediately, but any connections that
were established before the port stopped listening will continue until
they're closed by either end of the forwarded connection or the ssh
connection is forcibly terminated.  In your case, I'd guess you were
seeing HTTP/1.1 keep-alives.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Reply via email to