Table of Contents

TSocketHttpServer.WorkerThreads Property

Gets or sets the minimum number of worker threads that process requests.

Remarks

When 0 (the default), twice the number of processors is used. These threads are created when the server starts and kept alive while it runs; the server adds more threads on demand, up to MaxWorkerThreads, while requests wait for a worker -- which is what happens when handlers block on a database or on another server. Set both properties to the same value for a fixed-size pool. Takes effect when the server starts.

Syntax

Unit: Sparkle.Socket.Server

property TSocketHttpServer.WorkerThreads: Integer

See also