【问题标题】:http2:info (70007)The timeout specified has expired: client x.x.x.x:xxxxx AH02950: h2_session(2): error reading, terminatinghttp2:info (70007)指定的超时已过期:客户端 x.x.x.x:xxxxx AH02950: h2_session(2): 读取错误,终止
【发布时间】:2018-02-17 10:02:05
【问题描述】:

我使用 certbot 成功安装了 Let's Encrypt 的 SSL 证书。我的网站似乎运行没有任何问题。 我的服务器是 Apache/2.4.18 上的 Ubuntu 16.04。我安装了 http2 模块,它似乎工作正常。

但是,当我检查我的 Apache error.log 时,我会收到大量这样的消息:

[Fri Sep 08 14:43:05.714366 2017] [http2:info] [pid 2129] (70007)The timeout specified has expired: [client 195.221.155.11:56932] AH02950: h2_session(6): error reading, terminating
[Fri Sep 08 14:44:35.424938 2017] [http2:info] [pid 1559] (70007)The timeout specified has expired: [client 178.149.169.177:35524] AH02950: h2_session(3): error reading, terminating
[Fri Sep 08 14:45:44.538785 2017] [http2:info] [pid 32149] (70007)The timeout specified has expired: [client 80.215.162.154:28341] AH02950: h2_session(20): error reading, terminating
[Fri Sep 08 14:48:43.594498 2017] [http2:info] [pid 1331] (70007)The timeout specified has expired: [client 90.28.109.155:51857] AH02950: h2_session(1): error reading, terminating
[Fri Sep 08 14:48:44.456602 2017] [http2:info] [pid 2129] (70007)The timeout specified has expired: [client 78.192.12.171:50312] AH02950: h2_session(6): error reading, terminating
[Fri Sep 08 14:49:04.443087 2017] [http2:info] [pid 2141] (70007)The timeout specified has expired: [client 178.50.64.162:27963] AH02950: h2_session(24): error reading, terminating
[Fri Sep 08 14:49:04.443166 2017] [http2:info] [pid 2631] (70007)The timeout specified has expired: [client 178.50.64.162:17882] AH02950: h2_session(26): error reading, terminating
[Fri Sep 08 14:50:28.678586 2017] [http2:info] [pid 2582] (70007)The timeout specified has expired: [client 37.18.174.227:16896] AH02950: h2_session(11): error reading, terminating

我注意到,当我使用浏览器显示我网站的任何页面时,该页面显示良好,但大约 5 分钟后,我在日志中出现此错误消息。

有人知道如何阻止我的 error.log 那样尖叫吗?

【问题讨论】:

    标签: apache http2


    【解决方案1】:

    将 Apache 升级到更高版本。

    例如查看此错误:https://github.com/icing/mod_h2/issues/72

    mod_http2 自 2.4.18 以来有很多变化,它只是在 2.4.26 中放弃了“实验”状态。有关详细信息,请参阅此答案:https://serverfault.com/questions/840827/should-we-use-apaches-http2

    【讨论】:

    • 非常感谢。升级到 apache 2.4.27 时,我遇到了这个错误:[http2:warn] [pid 25095] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determines how things are processed in your server. HTTP/2 has more demands in this regard and the currently selected mpm will just not do. This is an advisory warning. Your server will continue to work, but the HTTP/2 protocol will be inactive. 所以我禁用了 mpm_prefork 并使用 fastcgi 启用了 mpm_event
    猜你喜欢
    • 2017-10-25
    • 2014-04-05
    • 2018-09-09
    • 2012-04-28
    • 1970-01-01
    • 2014-03-24
    • 1970-01-01
    • 1970-01-01
    • 2016-04-03
    相关资源
    最近更新 更多