当前位置:网站首页>Apache服务挂起Asynchronous AcceptEx failed.
Apache服务挂起Asynchronous AcceptEx failed.
2022-07-03 16:59:00 【星哥玩云】
最近在使用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 none
AcceptFilter https none
最终解决问题
边栏推荐
- Résolution de l'instance d'assemblage - - affichage à l'écran en mode réel
- MySQL user management
- 图之深度优先搜索
- Arduino esp32: overall framework of lvgl project (I)
- [try to hack] active detection and concealment technology
- [combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe
- 線程池:業務代碼最常用也最容易犯錯的組件
- One brush 148 force deduction hot question-5 longest palindrome substring (m)
- 建立自己的网站(23)
- [Jianzhi offer] 58 - ii Rotate string left
猜你喜欢

Leetcode: lucky number in matrix

What material is 12cr1movr? Chemical property analysis of pressure vessel steel plate 12cr1movr

What material is sa537cl1? Sa537cl1 corresponds to the national standard material

Bcvp developer community 2022 exclusive peripheral first bullet

美团一面:为什么线程崩溃崩溃不会导致 JVM 崩溃
![[combinatorics] non descending path problem (number of non descending paths with constraints)](/img/89/bd1a2ddd9632ab5d4b4bee9336be51.jpg)
[combinatorics] non descending path problem (number of non descending paths with constraints)

C语言按行修改文件

What material is 13crmo4-5 equivalent to in China? 13crmo4-5 chemical composition 13crmo4-5 mechanical properties

Thread pool: the most common and error prone component of business code

关于学习Qt编程的好书精品推荐
随机推荐
To resist 7-Zip, list "three sins"? Netizen: "is the third key?"
What is the pledge pool and how to pledge?
ANOVA example
Kotlin学习快速入门(7)——扩展的妙用
Recommendation of good books on learning QT programming
How to allow remote connection to MySQL server on Linux system?
What material is 13crmo4-5 equivalent to in China? 13crmo4-5 chemical composition 13crmo4-5 mechanical properties
大消费企业怎样做数字化转型?
Define a structure fraction to represent a fraction, which is used to represent fractions such as 2/3 and 5/6
Bcvp developer community 2022 exclusive peripheral first bullet
跨境电商:外贸企业做海外社媒营销的优势
[combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe
Yu Wenwen, Hu Xia and other stars take you to play with the party. Pipi app ignites your summer
[combinatorics] recursive equation (example 1 of recursive equation | list recursive equation)
Execute script unrecognized \r
Necessary ability of data analysis
Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard
Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
[Jianzhi offer] 64 Find 1+2+... +n
CC2530 common registers for watchdog