EXPERIMENTAL: WithMaxRequests sets the default max requests before restarting a PHP thread (0 = unlimited). Applies to regular and worker threads.
(maxRequests int)
| 169 | |
| 170 | // EXPERIMENTAL: WithMaxRequests sets the default max requests before restarting a PHP thread (0 = unlimited). Applies to regular and worker threads. |
| 171 | func 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 |
| 180 | func WithWorkerEnv(env map[string]string) WorkerOption { |
no outgoing calls