【问题标题】:Icecast + HTTPS disconnects after 3 secondsIcecast + HTTPS 在 3 秒后断开连接
【发布时间】:2018-12-02 03:32:55
【问题描述】:

我有一台服务器,在使用 HTTPS 连接时,并非所有时候都会在 3 秒后踢掉用户。

  • 有效的 TLS 证书。
  • Icecast 版本 2.4.3。
  • CentOS 7.5
  • OpenSSL 1.0.2k

如果我重新启动,就会恢复正常。但是每次我自动更新我的 SSL 证书(让我们加密),每 80 天,我需要手动测试服务器......如果我“wget” URL,没问题,它会下载几分钟......

现在(12/02/2018)问题正在发生:

https://audio8.97fm.com.br/energia

有什么想法吗?


到 TBR:

[2018-12-03  09:45:58] INFO source/source_main listener count on /energia now 1
[2018-12-03  09:45:58] DBUG stats/modify_node_event update global listeners (1)
[2018-12-03  09:45:58] DBUG stats/modify_node_event update global clients (3)
[2018-12-03  09:45:58] DBUG stats/modify_node_event update "/energia" listeners (1)
[2018-12-03  09:46:00] DBUG stats/modify_node_event update "/energia2" total_bytes_read (824239981)
[2018-12-03  09:46:00] DBUG stats/modify_node_event update "/energia2" total_bytes_sent (11441133)
[2018-12-03  09:46:02] DBUG stats/modify_node_event update global clients (4)
[2018-12-03  09:46:02] DBUG stats/modify_node_event update global connections (50399)
[2018-12-03  09:46:02] DBUG auth/add_listener_to_source max on /energia is 2200 (cur 1)
[2018-12-03  09:46:02] DBUG auth/add_listener_to_source Added client to /energia
[2018-12-03  09:46:02] DBUG auth/add_authenticated_listener client authenticated, passed to source
[2018-12-03  09:46:02] DBUG stats/modify_node_event update global client_connections (48325)
[2018-12-03  09:46:02] DBUG source/source_main Client added for mountpoint (/energia)
[2018-12-03  09:46:02] INFO source/source_main listener count on /energia now 2
[2018-12-03  09:46:03] DBUG format/format_check_http_buffer processing pending client headers
[2018-12-03  09:46:03] DBUG stats/modify_node_event update "/energia" listeners (2)
[2018-12-03  09:46:03] DBUG stats/modify_node_event update global listeners (2)
[2018-12-03  09:46:03] DBUG stats/modify_node_event update global listener_connections (46030)
[2018-12-03  09:46:03] DBUG stats/modify_node_event update "/energia" total_bytes_read (1101800)
[2018-12-03  09:46:03] DBUG stats/modify_node_event update "/energia" total_bytes_sent (1201852)
[2018-12-03  09:46:03] DBUG client/client_send_bytes Client connection died
[2018-12-03  09:46:03] DBUG source/source_main Client removed
[2018-12-03  09:46:03] INFO source/source_main listener count on /energia now 1
[2018-12-03  09:46:03] DBUG stats/modify_node_event update global listeners (1)
[2018-12-03  09:46:03] DBUG stats/modify_node_event update global clients (3)
[2018-12-03  09:46:03] DBUG stats/modify_node_event update "/energia" listeners (1)
[2018-12-03  09:46:05] DBUG stats/modify_node_event update "/energia2" total_bytes_read (824260982)
[2018-12-03  09:46:05] DBUG stats/modify_node_event update "/energia2" total_bytes_sent (11441133)
[2018-12-03  09:46:07] DBUG stats/modify_node_event update global clients (4)
[2018-12-03  09:46:07] DBUG stats/modify_node_event update global connections (50400)
[2018-12-03  09:46:07] DBUG auth/add_listener_to_source max on /energia is 2200 (cur 1)
[2018-12-03  09:46:07] DBUG auth/add_listener_to_source Added client to /energia
[2018-12-03  09:46:07] DBUG auth/add_authenticated_listener client authenticated, passed to source
[2018-12-03  09:46:07] DBUG source/source_main Client added for mountpoint (/energia)
[2018-12-03  09:46:07] INFO source/source_main listener count on /energia now 2
[2018-12-03  09:46:08] DBUG format/format_check_http_buffer processing pending client headers
[2018-12-03  09:46:08] DBUG stats/modify_node_event update global client_connections (48326)
[2018-12-03  09:46:08] DBUG stats/modify_node_event update "/energia" listeners (2)
[2018-12-03  09:46:08] DBUG stats/modify_node_event update global listeners (2)
[2018-12-03  09:46:08] DBUG stats/modify_node_event update global listener_connections (46031)
[2018-12-03  09:46:08] DBUG stats/modify_node_event update "/energia" total_bytes_read (1121400)
[2018-12-03  09:46:08] DBUG stats/modify_node_event update "/energia" total_bytes_sent (1235865)
[2018-12-03  09:46:08] DBUG client/client_send_bytes Client connection died
[2018-12-03  09:46:08] DBUG source/source_main Client removed

【问题讨论】:

    标签: https icecast


    【解决方案1】:

    我们收到了关于 CentOS 7 的 openSSL 问题的报告。我认为我们将其追溯到该特定发行版中的某种 openSSL 问题。所以一件事是尝试更新的 openSSL。

    请您查看 Icecast error.log 好吗?如有必要,将日志级别提高到 4 并重新加载/HUP。

    对于我尝试以可重现的方式使用 curl 中断访问流:

    < icy-url:http://www.97fm.com.br
    < 
    { [5 bytes data]
    100 15399    0 15399    0     0   3689      0 --:--:--  0:00:04 --:--:--  3690
    * Closing connection 0
    } [5 bytes data]
    * TLSv1.2 (OUT), TLS alert, close notify (256):
    } [2 bytes data]
    

    【讨论】:

    • 您好 TBR,error.log 中没有记录错误(默认配置)。我可以将级别更改为 4,但如果我 HUP 它将恢复正常。问题并非总是发生,只有当我在 SSL 证书更新后重新启动它时。但我可以尝试继续重启,直到问题再次发生,检查日志...有帮助吗?
    • A kill -HUP $PID 应该只更改配置而不是完全重启。它可能会使问题消失,但更有可能将其留在原地。
    • 注意:我有来自不同编码器的 2 个 PP、/energia(主)和 /energia2(后备)。如果需要,我可以提供配置。但我不认为这是相关的。
    • 您能否将其添加到您的问题中?这样会更具可读性。谢谢!
    • 相关行似乎是“DBUG client/client_send_bytes Client connection dead”。这很可能是 openSSL 问题。
    猜你喜欢
    • 2014-07-31
    • 1970-01-01
    • 2013-02-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多