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

标题: kangle跑wp程序报504 upstream protocol header size is too big [打印本页]

作者: 小樱    时间: 2018/2/26 18:27
标题: kangle跑wp程序报504 upstream protocol header size is too big
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.          }
复制代码







欢迎光临 ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com (https://bbs.itzmx.com/) Powered by Discuz! X3.4