我遇到一个奇怪的问题, 启用了mpm_prefork_module,会话已关闭,但是apache未并行运行php。我想念什么?
mpm_prefork_config(我检查是否已启用):
/**
* STATUS: this works perfectly and returns the data we expect.
*
* @param request
* @param callback
*/
function interceptBufferProtocol(request, callback) {
callback({
mimeType: "text/html",
data: Buffer.from('<html><head><title>Testos</title></head><body>Hello</body></html>', 'utf8')
});
}
protocol.registerBufferProtocol("http", interceptBufferProtocol, async (err) => {
console.log(err)
});
protocol.interceptBufferProtocol('http', interceptBufferProtocol, async (error) => {
if (error) {
console.error('failed to register protocol handler for HTTP');
return;
}
await createWindow();
});
和示例脚本:
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 5
MaxClients 5
</IfModule>
如果我运行此脚本4次,则第4个phpinfo();将在20秒后打印。
我缺少一些配置吗?