Timeout when max-childrens reached.

未关闭
#11,260 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
c, php
领域
backend

调研方向

首先阅读关于达到 max_children 后 PHP-FPM 等待的链接 Bugzilla 报告,然后定位 PHP-FPM 连接和子进程管理的入口点。在确定相关测试之前,先定义可配置超时的行为及其失败情况;完成的标准是过载连接在该限制内终止,同时不改变现有的执行超时或 HTTP 超时行为。

由索引模型根据 Issue 内容生成。

描述

Feature SAPI: fpm
Description

Referring to:
https://bz.apache.org/bugzilla/show_bug.cgi?id=66603

It will be nice to set a timeout limit when connection will be terminated after trying to get free childrens of php-fpm. These limit should be smaller then max_execution_time or apache's timeouts because it will help with durability durring ddos attacks or with bugged apps. It specially important for shared servers, while one of app will reached max-childrens and there will be still incomming connections, so with waiting for childrens in infinity time or 300 seconds like apaches do it's to long and another limit's of server can be reached. These connections must be terminated alot faster, and timeout of http server cannot be smaller because of max_execution_time.

主要语言
C
星标
40.4k
派生
8.2k
平均合并
2 天 15 小时
30 天内合并 PR
103

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

php/php-src 的其他 Issue

查看 php/php-src 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。