设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 1747|回复: 0

kangle跑wp程序报504 upstream protocol header size is too big

[复制链接]
 成长值: 0

签到天数: 4494 天

[LV.Master]伴坛终老

发表于 2018/2/26 18:27 | 显示全部楼层 |阅读模式 |Google Chrome 64.0.3282.186|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
upstream protocol header size is too big
header不合法,通过调试模式查看

导致头超过了4M限制。
在wp程序中有独立配置开启了display_errors,把它关闭
或者直接修改警告的这个文件/wwwroot/wp-includes/functions.php 1618行

把is_dir前面加一个@就关了警告
结果就是cpu 100%
好好研究下,肯定能找到wp的bug提交给wp官方修复

https://core.trac.wordpress.org/timeline

https://core.trac.wordpress.org/ticket/43417

  1. Index: src/wp-includes/functions.php
  2. ===================================================================
  3. --- src/wp-includes/functions.php
  4. +++ src/wp-includes/functions.php
  5. @@ -1680,6 +1680,10 @@ function wp_mkdir_p( $target ) {
  6.          // We need to find the permissions of the parent folder that exists and inherit that.
  7.          $target_parent = dirname( $target );
  8.          while ( '.' != $target_parent && ! is_dir( $target_parent ) ) {
  9. +                // Infinite loop protection (see https://core.trac.wordpress.org/ticket/43417)
  10. +                if ( dirname( $target_parent ) === $target_parent ) {
  11. +                        break;
  12. +                }
  13.                  $target_parent = dirname( $target_parent );
  14.          }
复制代码


[发帖际遇]: 小樱 被钱袋砸中进医院,看病花了 4 樱币. 幸运榜 / 衰神榜
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/4/24 21:52 , Processed in 0.142540 second(s), 21 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表