> > >
# Forums You may post here on any subjects related to this site or the software therein. (Most everything on this site is tied into the forums so that you may leave or post comments about it.)
## Telnet connection not fully closing `From: Rob McClain` `Date: September 20 2002 3:55 PM` |
Greetings, I am having a problem with the TCPClient. I am using a ColdFusion server running under Windows 2000 to telnet to a UNIX system. The problem occurs when the connection should be closed. When I run netstat on the CF server, the socket is in the CLOSE_WAIT status. On the UNIX system, netstat reports the socket is in FIN_WAIT_2. This indicates to me that the TCPClient needs to send an ACK to the UNIX system to complete the connection breakdown. Eventually, there are enough "dead" sockets to bring the TCP stack on the CF server to a halt. The CF page I am using is processed every minute by the CF scheduler. On each load, it alternates between opening 1 of 2 TCPClient objects (created as application variables) and closing the other (with Close() ). The telnet session only consists of logging in, the remainder is in the .profile (ending in exit to close the session), and is completed before the next scheduled page load. Any suggestions on how to avoid or eliminate the "dead" sockets would be much appreciated. Thank you, Rob McClain mrm@thor.co.alachua.fl.us
`Copyright © 1997-2006 by Lewis A. Sellers.` Login