[fpc-pascal] fphttpserver: reduce the stack size of the thread spawned for threaded server

Luca Olivetti luca at ventoso.org
Mon May 18 22:05:29 CEST 2026


El 18/5/26 a les 21:59, Michael Van Canneyt via fpc-pascal ha escrit:

>>
>> what other options do I have?
> 
> At this moment, none. The best I can do is add a class variable to allow 
> you to
> set its class-type value to a TFPHTTPConnectionThread class descendant,
> then that descendant would be used. Then you set this variable at the 
> start.
> 
> Another option is to create a ConnectionThreadStackSize variable that would
> be used to set the stack size.

Thank you, but both options would require an upgraded fpc/fcl, in that 
case I could simply modify my copy of fphttpserver.pp to use a different 
stack size.
I'll see if I find a way of changing the stack size while keeping the 
fpc3.2.2 sources pristine.

Bye
-- 
Luca


More information about the fpc-pascal mailing list