最近在使用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
|
最终解决问题
分享到:
相关推荐
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 ...
标题中的“PyPI 官网下载 | dm.zodb.asynchronous-1.0.1.tar.gz”指的是Python的包管理系统PyPI(Python Package Index)上发布的名为`dm.zodb.asynchronous`的一个版本为1.0.1的软件包,其源代码以tar.gz格式提供。...
标题“The-asynchronous-call.rar_The Call”提示我们,这个压缩包可能包含与异步调用相关的资源,可能是代码示例、教程或者API文档。 异步调用通常涉及到以下几个核心概念: 1. **回调函数(Callback Function)*...
藏经阁-An Asynchronous Parameter Server for Spark 本节将详细介绍异步参数服务器(Asynchronous Parameter Server)在 Spark 中的应用,及其在机器学习算法和模型中的角色。 异步参数服务器是 Spark 中的一种...
在这个名为"FIFO_-asynchronous-master.zip"的压缩包中,包含了使用Verilog语言实现的异步FIFO设计。Verilog是一种硬件描述语言,它允许设计者以结构化的方式描述数字系统的功能和行为,无论是简单的逻辑门还是复杂...
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" 可以帮助开发人员构建更高效、更响应迅速的网络应用程序,特别是对于那些需要频繁进行DNS查询的服务来说,比如负载均衡器、CDN(内容分发网络)系统或者...
本文《Simulation and Synthesis Techniques for Asynchronous FIFO Design with Asynchronous Pointer Comparisons》由Clifford E. Cummings和Peter Alfke撰写,详细介绍了异步FIFO设计中的一种创新技术——异步...
无时钟同步的声脉冲响应测量,模拟测试信号的噪声、混响、异步记录,估计时钟漂移和脉冲响应。
Proactor模型通过一个或多个异步操作服务进程来完成I/O操作,从而允许应用程序继续执行,直到操作完成时才接收事件通知。这种模型被证明在处理大量并发I/O操作时非常有效。 5. 可扩展性与可移植性 Asio不仅支持大量...
Asynchronous Programming ..........................................2 Avoiding Deadlocks, Part I ........................................9 FAQ Corner ......................................................
"Asynchronous Java made easier.zip"这个压缩包文件可能包含一个名为"parseq-master"的项目,该项目可能是为了简化Java中的异步编程而设计的。Parseq是一个高效的异步计算库,它提供了简洁、直观的API来处理复杂的...
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-...
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 ...
在C#编程中,异步UI(Asynchronous UI)是一个重要的概念,特别是在开发Windows桌面应用程序时,如Winform应用。这种技术允许程序在不阻塞用户界面(UI)的情况下执行耗时的操作,如数据加载、文件操作或网络通信。...
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 ...
这样可以避免线程在等待I/O操作完成时被挂起,提高程序响应性。 5. **异步I/O(Asynchronous I/O)**:POSIX标准提供了`aio`库,可以进行异步文件读写。但对网络套接字的支持并不普遍,一般需要依赖特定的操作系统...