mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
apply 1 minute timeout to file listing
This commit is contained in:
parent
4b5bffbd83
commit
d43983e986
4
main.pas
4
main.pas
@ -1,4 +1,4 @@
|
||||
{
|
||||
{
|
||||
Copyright (C) 2002-2020 Massimo Melina (www.rejetto.com)
|
||||
|
||||
This file is part of HFS ~ HTTP File Server.
|
||||
@ -1383,6 +1383,7 @@ type
|
||||
constructor TfileListing.create();
|
||||
begin
|
||||
dir:=NIL;
|
||||
timeout:=Now()+1/MINUTES;
|
||||
end; // create
|
||||
|
||||
destructor TfileListing.destroy;
|
||||
@ -5039,7 +5040,6 @@ var
|
||||
listing:=TfileListing.create();
|
||||
try
|
||||
listing.ignoreConnFilter:=ignoreConnFilters;
|
||||
listing.timeout:= now()+1/MINUTES;
|
||||
listing.fromFolder( f, data, shouldRecur(data));
|
||||
fIsTemp:=f.isTemp();
|
||||
ofs:=length(f.resource)-length(f.name)+1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user