mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 23:40:14 +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;
|
Procedure RemoveConnection(aConnection :TFPHTTPConnection); override;
|
||||||
Public
|
Public
|
||||||
Constructor Create(aServer : TFPCustomHTTPServer); override;
|
Constructor Create(aServer : TFPCustomHTTPServer); override;
|
||||||
|
Destructor Destroy; override;
|
||||||
Procedure HandleConnection(aConnection : TFPHTTPConnection); override;
|
Procedure HandleConnection(aConnection : TFPHTTPConnection); override;
|
||||||
Procedure CloseSockets; override;
|
Procedure CloseSockets; override;
|
||||||
Function GetActiveConnectionCount : Integer; override;
|
Function GetActiveConnectionCount : Integer; override;
|
||||||
@ -536,6 +537,13 @@ begin
|
|||||||
Result:=TConnectionList.Create;
|
Result:=TConnectionList.Create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
destructor TFPHTTPServerConnectionListHandler.Destroy;
|
||||||
|
begin
|
||||||
|
FList.Free;
|
||||||
|
|
||||||
|
inherited Destroy;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TFPHTTPServerConnectionListHandler.CloseConnectionSocket(aConnection: TFPHTTPConnection; var aContinue: boolean);
|
procedure TFPHTTPServerConnectionListHandler.CloseConnectionSocket(aConnection: TFPHTTPConnection; var aContinue: boolean);
|
||||||
begin
|
begin
|
||||||
sockets.CloseSocket(aConnection.Socket.Handle);
|
sockets.CloseSocket(aConnection.Socket.Handle);
|
||||||
|
Loading…
Reference in New Issue
Block a user