Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : TIdTCPServer TIME_WAIT problem
| Subject: | TIdTCPServer TIME_WAIT problem |
| Posted by: | "Frederico Pissarra" (..@nowhere.net) |
| Date: | Tue, 19 Sep 2006 15:08:29 |
I have 2 simple apps: One TCP Server (OnExecute below):
procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
var S: String;
begin
with AThread.Connection do
if Connected then
begin
S := ReadLn;
WriteLn(S);
Disconnect;
end;
end;
I'm testing this with telnet... it works perfectly but, when the server
disconnects and I ran "netstat -a -p tcp" I got this:
Proto Local Address Remote Address Stat
TCP localhost:10000 localhost:0 LISTENING
TCP localhost:10000 localhost:1217 TIME_WAIT
Well... I don't have the telnet application running at this point... and the
server app disconnected... why this TIME_WAIT entry? How can I get rid of
it?
[]s
Fred