MCPcopy Index your code
hub / github.com/php/frankenphp / WithMaxRequests

Function WithMaxRequests

options.go:171–177  ·  view source on GitHub ↗

EXPERIMENTAL: WithMaxRequests sets the default max requests before restarting a PHP thread (0 = unlimited). Applies to regular and worker threads.

(maxRequests int)

Source from the content-addressed store, hash-verified

169
170// EXPERIMENTAL: WithMaxRequests sets the default max requests before restarting a PHP thread (0 = unlimited). Applies to regular and worker threads.
171func WithMaxRequests(maxRequests int) Option {
172 return func(o *opt) error {
173 o.maxRequests = maxRequests
174
175 return nil
176 }
177}
178
179// WithWorkerEnv sets environment variables for the worker
180func WithWorkerEnv(env map[string]string) WorkerOption {

Callers 5

TestModuleMaxRequestsFunction · 0.92
TestWorkerMaxRequestsFunction · 0.92
StartMethod · 0.92

Calls

no outgoing calls

Tested by 4

TestModuleMaxRequestsFunction · 0.74
TestWorkerMaxRequestsFunction · 0.74