diff --git a/frankenphp.go b/frankenphp.go index b87eb36..d7e3560 100644 --- a/frankenphp.go +++ b/frankenphp.go @@ -333,7 +333,7 @@ func Init(options ...Option) error { shutdownWG.Add(1) done = make(chan struct{}) - requestChan = make(chan *http.Request) + requestChan = make(chan *http.Request, opt.numThreads) initPHPThreads(opt.numThreads) if C.frankenphp_init(C.int(opt.numThreads)) != 0 {