Apache Service hangs asynchronous AcceptEx failed.

Source: Internet
Author: User

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. datawaits until data has been transmitted as documented above, and the initial data buffer and network endpoint addresses Is all retrieved from the ACCEPTEX () invocation. connectWould use the AcceptEx () API, also retrieve the network endpoint addressesnone theconnectoption 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.