mirror of
https://github.com/dunglas/frankenphp
synced 2024-11-23 00:30:10 +00:00
perf: use buffered chans for requests (#1146)
This commit is contained in:
parent
9013614801
commit
022b8f1094
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user