Apache-2.2

在 FreeBSD 上重啟 Apache httpd 的 httpready 問題?

  • January 17, 2012

我在 FreeBSD 7.2 網路伺服器上執行 Apache HTTPD 2.2。我在我的 中啟用了httpreadyand ,如下所示:dataready``/boot/loader.conf

accf_http_load="YES"
accf_data_load="YES"

當伺服器啟動時效果很好,但是每當我重新啟動(通過apachectl gracefulapachectl restart)時,我都會在我的/var/log/httpd-error.log:

[Thu Oct 08 13:32:53 2009] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Oct 08 13:32:53 2009] [warn] (22)Invalid argument: Failed to enable the 'dataready' Accept Filter
[Thu Oct 08 13:32:53 2009] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Oct 08 13:32:53 2009] [warn] (22)Invalid argument: Failed to enable the 'dataready' Accept Filter
[Thu Oct 08 13:32:53 2009] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter
[Thu Oct 08 13:32:53 2009] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter

ASF bugzilla 上有一個錯誤,但看起來它不會很快出現,所以與此同時,我正在尋找這是否真的是一個問題(儘管 httpready 過濾器仍然有效警告?),如果是,是否有解決方法?

我相信這是兩件事之一。要麼 Apache 在打開新的偵聽套接字之前沒有關閉以前的連接(或者它甚至可能回收舊的),要麼核心將過濾器使用與 PID 而不是套接字關聯(這充其量是奇怪的)。絕對是不對的,但我不確定它是在 Apache 中還是在核心中。該問題在 9.0 和 2.2.20 中仍然存在。

由於 2 年內似乎沒有人對此感到困擾,並且使用 rc 腳本而不是 apachectl 很容易解決它,所以我不打算追捕它(抱歉)。

引用自:https://serverfault.com/questions/72490