Apache服務掛起Asynchronous AcceptEx failed.

來源:互聯網
上載者:User

標籤:web伺服器   failed   start   網路   開發   

    最近在使用PHP5.6+Apache2.4,搭建開發環境;在實際的開發過程中發現http請求一致處於掛起狀態,於是重啟(net start/stop)Apache2.4服務,然後再訪問問題得到瞭解決,但是過一會,平凡的開啟頁面又出現問題,通過查看web伺服器的日誌,發現報很多"指定的網路名稱不再可用"的錯誤:

[Thu Nov 20 14:07:43.151780 2014] [mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的網路名稱不再可用。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.[Thu Nov 20 14:07:43.152781 2014] [mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的網路名稱不再可用。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.[Thu Nov 20 14:07:43.152781 2014] [mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的網路名稱不再可用。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.[Thu Nov 20 14:07:43.152781 2014] [mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的網路名稱不再可用。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.[Thu Nov 20 14:07:43.152781 2014] [mpm_winnt:warn] [pid 8752:tid 1132] (OS 64)指定的網路名稱不再可用。  : AH00341: winnt_accept: Asynchronous AcceptEx failed.

    在網上找各種資料,都是說在httpd.conf檔案中添加 Win32DisableAcceptEx 標記:

<IfModule mpm_winnt.c>    ThreadsPerChild 150    MaxRequestsPerChild 10000    Win32DisableAcceptEx</IfModule>

配置之後問題依然未得到解決,最終查看Apache的手冊(PS:查看最新的Apache2.4的手冊),看到官方的如下解釋:

The default values on Windows are:

AcceptFilter http data
AcceptFilter https data

Window‘s mpm_winnt interprets the AcceptFilter to toggle the AcceptEx() API, and does not support http protocol buffering. There are two values which utilize the Windows AcceptEx() API and will recycle network sockets between connections. data waits until data has been transmitted as documented above, and the initial data buffer and network endpoint addresses are all retrieved from the single AcceptEx() invocation. connect will use the AcceptEx() API, also retrieve the network endpoint addresses, but like none the connect option does not wait for the initial data transmission.

On Windows, none uses accept() rather than AcceptEx() and will not recycle sockets between connections. This is useful for network adapters with broken driver support, as well as some virtual network providers such as vpn drivers, or spam, virus or spyware filters.

在設定檔中添加如下資訊:

AcceptFilter http noneAcceptFilter https none

最終解決問題

Apache服務掛起Asynchronous AcceptEx failed.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.