Apache服务挂起Asynchronous AcceptEx failed.
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Apache服务挂起Asynchronous AcceptEx failed.,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2165字,纯文字阅读大概需要4分钟。
内容图文
最近在使用PHP5.6+Apache2.4,搭建开发环境;在实际的开发过程中发现http请求一致处于挂起状态,于是重启(net start/stop)Apache2.4服务,然后再访问问题得到了解决,但是过一会,平凡的打开页面又出现问题,通过查看web服务器的日志,发现报很多"指定的网络名不再可用"的错误:
1
2
3
4
5
|
[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 标记:
1
2
3
4
5
|
<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.
在配置文件中添加如下信息:
1
2
|
AcceptFilter?http?none
AcceptFilter?https?none
|
最终解决问题
内容总结
以上是互联网集市为您收集整理的Apache服务挂起Asynchronous AcceptEx failed.全部内容,希望文章能够帮你解决Apache服务挂起Asynchronous AcceptEx failed.所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。