When a you close a socket, the TCP/IP protocol (rfc 793) mandates that the
port will be kept out of circulation for some period of time. During that
time, if you run NETSTAT, you will see that socket in the TIME_WAIT state.
After a few minutes, the port should get freed. This is a safety mechanism
in TCP/IP designed to avoid getting ghost data from a previous session. You
main want to try the REUSEADDR socket option to force the reuse of the port
before it gets freed.
/d
Quote:> Hello,
> i have wrote a FTP-Server at Delphi 5 and now i have the problem, that
after
> passiv dataconnection the socket will be shutdown and close the winsock
port
> is still in use. Where it coming from? And how could i close the port? I
> Socket used in non Bolcking mode.
> Thanks Gunther