mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 11:59:19 +02:00
Info about active connections
This commit is contained in:
parent
c4e2029179
commit
8fc1bc276f
@ -13,6 +13,8 @@ Type
|
|||||||
THTTPServer = class(TTestHTTPServer)
|
THTTPServer = class(TTestHTTPServer)
|
||||||
protected
|
protected
|
||||||
function CreateConnection(Data: TSocketStream): TFPHTTPConnection; override;
|
function CreateConnection(Data: TSocketStream): TFPHTTPConnection; override;
|
||||||
|
public
|
||||||
|
Property ConnectionCount;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TServerThread = class(TThread)
|
TServerThread = class(TThread)
|
||||||
@ -53,7 +55,7 @@ begin
|
|||||||
FServ.Threaded:=True;
|
FServ.Threaded:=True;
|
||||||
FServ.Port:=8080;
|
FServ.Port:=8080;
|
||||||
FServ.WriteInfo := @WriteInfo;
|
FServ.WriteInfo := @WriteInfo;
|
||||||
FServ.AcceptIdleTimeout := 500;
|
FServ.AcceptIdleTimeout := 1000;
|
||||||
FServ.OnAcceptIdle := @ServOnIdle;
|
FServ.OnAcceptIdle := @ServOnIdle;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user