Recently in the use of php5.6+apache2.4, to build a development environment, in the actual development process found that the HTTP request is in a pending state, and then restart (net Start/stop) Apache2.4 service, and then access to the problem was resolved, but after a while, The trivial open page again problems, by viewing the Web server log, found that many " specified network name is no longer available " error:
[thu nov 20 14:07:43.151780 2014] [mpm_winnt:warn] [pid 8752:tid 1132] The network name specified by (os 64) is no longer available. : ah00341: winnt_accept: asynchronous acceptex failed. [thu nov 20 14:07:43.152781 2014] [mpm_winnt:warn] [pid 8752:tid 1132] The network name specified by (os 64) is no longer available. : ah00341: winnt_accept: asynchronous acceptex failed. [thu nov 20 14:07:43.152781 2014] [mpm_winnt:warn] [pid 8752:tid 1132] The network name specified by (os 64) is no longer available. : ah00341: winnt_accept: asynchronous acceptex failed. [thu nov 20 14:07:43.152781 2014] [mpm_winnt:warn] [pid 8752:tid 1132] The network name specified by (os 64) is no longer available. : ah00341: winnt_accept: asynchronous acceptex failed. [thu nov 20 14:07:43.152781 2014] [mpm_winnt:warn] The network name specified by [pid 8752:tid 1132] (os 64) is no longer available. : ah00341: winnt_accept: asynchronous acceptex failed.
To find all kinds of information on the Internet, it is said to add the Win32disableacceptex tag in the httpd.conf file:
<ifmodule mpm_winnt.c> threadsperchild maxrequestsperchild 10000 win32disableacceptex</ifmodule>
After the configuration the problem remains unresolved, and the final view of the Apache Manual (PS: View the latest Apache2.4 's manual), see the official explanation for the following:
The default values on Windows is:
Acceptfilter HTTP Data
Acceptfilter HTTPS data
Window ' s mpm_winnt interprets the acceptfilter to toggle the AcceptEx () API, and does not support HTTP Protoc OL buffering. There is the values which utilize the Windows AcceptEx () API and would recycle network sockets between connections. data
waits until data has been transmitted as documented above, and the initial data buffer and network endpoint addresses Is all retrieved from the ACCEPTEX () invocation. connect
Would use the AcceptEx () API, also retrieve the network endpoint addressesnone
theconnect
option does not wait for the initial data transmission.
On Windows, none
uses accept () rather than AcceptEx () and would not recycle sockets between connections. This was useful for network adapters with broken driver support, as well as some virtual network providers such as VPN Driv ers, or spam, virus or spyware filters.
Add the following information to the configuration file:
Acceptfilter http Noneacceptfilter https None
Finally solve the problem
Apache Service hangs asynchronous AcceptEx failed.