I'm investigation on a growing of active TCP connection.
Seems TIdTCPClient.Disconnect
don't close connection.
This is a sample project
program Project2;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils,
IdTCPClient;
var
FClient: TIdTCPClient;
begin
try
FClient := TIdTCPClient.Create();
FClient.Connect('LOCALHOST', 6379);
FClient.Disconnect;
FClient.Free;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.
Opening this console application multiple times cause a growing of the connection
netstat -na | find "6379"
Side note: I'm on Berlin 10, Windows 7 (but is the same on Windows 10)