mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* destroy FList in the destructor of TFPHTTPServerConnectionListHandler
This commit is contained in:
parent
9b8a6438c7
commit
bfa0c60e77
@ -187,6 +187,7 @@ Type
|
||||
Procedure RemoveConnection(aConnection :TFPHTTPConnection); override;
|
||||
Public
|
||||
Constructor Create(aServer : TFPCustomHTTPServer); override;
|
||||
Destructor Destroy; override;
|
||||
Procedure HandleConnection(aConnection : TFPHTTPConnection); override;
|
||||
Procedure CloseSockets; override;
|
||||
Function GetActiveConnectionCount : Integer; override;
|
||||
@ -536,6 +537,13 @@ begin
|
||||
Result:=TConnectionList.Create;
|
||||
end;
|
||||
|
||||
destructor TFPHTTPServerConnectionListHandler.Destroy;
|
||||
begin
|
||||
FList.Free;
|
||||
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TFPHTTPServerConnectionListHandler.CloseConnectionSocket(aConnection: TFPHTTPConnection; var aContinue: boolean);
|
||||
begin
|
||||
sockets.CloseSocket(aConnection.Socket.Handle);
|
||||
|
Loading…
Reference in New Issue
Block a user