HolyLib Wiki

HttpServer:SetThreads

  HttpServer:SetThreads( number minThreads, number maxThreads )

Description

Sets the min/max amount of threads the underlying HTTP server uses to handle incoming connections.

Like HttpServer:Get, this needs to be called again after HttpServer:Start since it replaces the task queue that Start uses.

Arguments

1number minThreads

Minimum amount of threads to keep around

2number maxThreads

Maximum amount of threads that may be spawned