打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Apache日志报“....指定的网络名不再可用。 : AH00341: winnt_accept: Asynchronous AcceptEx failed”

          本人一直在使用Wampserver2.4-x64软件(Apache+php+Mysql)搭建邮件服务器,可是今天在远程访问Apache时页面总是访问延迟或者访问不到页面的情况,且在邮件系统服务器上访问页面都正常,但是同在一个局域网内的服务器也无法访问,至此可以判断可能是Apache的问题,随后到Apache的错误日志如下:

[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 theAcceptFilter to toggle the AcceptEx() API, and does not support http protocolbuffering. There are two values which utilize the Windows AcceptEx() API andwill recycle network sockets between connections. data waits until data hasbeen transmitted as documented above, and the initial data buffer and networkendpoint 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 datatransmission.

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

在配置文件中添加如下信息:

AcceptFilter http none

AcceptFilter https none

最终解决问题

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
indows下apache的ThreadsPerChild和Win32DisableAcceptEx
apache反向代理问题
Nginx vs Apache
Windows 系统下的Apache性能优化 - 火魔网
修改最大并发连接数
phpwamp运行在服务器上的相关注意事项
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服