perf: use buffered chans for requests (#1146)

This commit is contained in:
Rob Landers 2024-11-11 18:11:01 +01:00 committed by GitHub
parent 9013614801
commit 022b8f1094
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {