From 022b8f1094cef631f758302db19c6d1e76061e25 Mon Sep 17 00:00:00 2001 From: Rob Landers Date: Mon, 11 Nov 2024 18:11:01 +0100 Subject: [PATCH] perf: use buffered chans for requests (#1146) --- frankenphp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {