Forum: Ruby on Rails reverse proxy holding onto port, complicated

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Aec10c73877ea116bab759e060b2fcb3?d=identicon&s=25 uncle (Guest)
on 2007-05-24 15:34
(Received via mailing list)
I have a rails app that is behind a firewall and I need to be able to
ssh into the box, so I do this...

- create a reverse tunnel from the rails system to my system using ssh
- ssh from my system to the rails system thru the reverse tunnel

It works great !

But, if/when I restart my mongrel cluster, one of the mongrels always
fails with an "port in use" error.

I guess what's happening is my reverse tunnel ssh process is a child
of a mongrel process, and when I kill the mongrel process, the reverse
tunnel ssh process is still holding onto the port, in fact i can see
that with "fuse -n tcp 8001" for port 8001.

So the question is, how can I keep this from happening, I want to be
able to restart my cluster and not have any lingering ports screw me
up !
This topic is locked and can not be replied to.