Killing a lingering TCP Connection

Is their anyway to kill a TCP connection from the command line that is in
the FIN_WAIT state.?


Thanks

Kevin

Kevin Brown <kbrown@bytewise.com> wrote:

Is their anyway to kill a TCP connection from the command line that is in
the FIN_WAIT state.?

I don’t think so.

But, you may want to set SO_REUSEADDR for the socket you are binding
(setsockopt()). That way, when you run your program again, it will
succeed on the bind.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

David Gibbs <dagibbs@qnx.com> wrote in news:a4bqb3$e1q$3@nntp.qnx.com:

Kevin Brown <> kbrown@bytewise.com> > wrote:
Is their anyway to kill a TCP connection from the command line that is
in the FIN_WAIT state.?

I don’t think so.

But, you may want to set SO_REUSEADDR for the socket you are binding
(setsockopt()). That way, when you run your program again, it will
succeed on the bind.

BSD sockets usually timeout the connection in around 11minutes.


\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>