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