最近在使用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
|
最终解决问题
分享到:
相关推荐
资源来自pypi官网。 资源全名:dm.zodb.asynchronous-1.0.1.tar.gz
Asynchronous design has been an active area of research since at least the mid 1950’s, but has yet to achieve widespread use. We examine the benefits and problems inherent in asynchronous ...
Simulation and Synthesis Techniques for Asynchronous FIFO Design with Asynchronous Pointer Comparisons.pdf
藏经阁-An Asynchronous Parameter Serv.pdf
Apache and the Internet..............................................1 Apache: The Anatomy of a Web Server.........................................................1 The Apache Source ....................
AMC参考库帮助文档说明中文版
Using Ajax, you can build Web applications with the sophistication and usability of traditional desktop <br/>applications and you can do it using standards and open source software....
A C library for asynchronous DNS requests
LabVIEW
基于Verilog设计的异步FIFO,有效防止速率不匹配造成的数据丢失,文件中包含源码以及testbench,且有注释,可读性强
可实现异步调用子程序,跨线程访问控件,实现同步调用
Asynchronous IO with Boost.Asio - Michael Caisse - CppCon 2016.pdf
无时钟同步的声脉冲响应测量,模拟测试信号的噪声、混响、异步记录,估计时钟漂移和脉冲响应。
Asynchronous Java made easier.zip
Asynchronous networking for C .zip
Asynchronous Programming ..........................................2 Avoiding Deadlocks, Part I ........................................9 FAQ Corner ......................................................
The introduction of Combine into the Swift ecosystem now gives you a native way to manage asynchronous events in Swift, meaning you don’t have to rely on third-party reactive frameworks for event-...
Asynchronous programming with async and await 使用 Async 和 Await 的异步编程
This model imitates wotking of unduction motor. This is a simple example for understanding asynchronous machine working.
ISSI SRAM Asynchronous SRAM 5V High-Speed.IntLib ISSI SRAM Asynchronous SRAM 5V Low Power.IntLib ISSI SRAM Asynchronous SRAM Automotive.IntLib ISSI SRAM Asynchronous SRAM High Speed Low Power.IntLib ...