`
dyllove98
  • 浏览: 1409505 次
  • 性别: Icon_minigender_1
  • 来自: 济南
博客专栏
73a48ce3-d397-3b94-9f5d-49eb2ab017ab
Eclipse Rcp/R...
浏览量:39189
4322ac12-0ba9-3ac3-a3cf-b2f587fdfd3f
项目管理checkList...
浏览量:80270
4fb6ad91-52a6-307a-9e4f-816b4a7ce416
哲理故事与管理之道
浏览量:133389
社区版块
存档分类
最新评论

Apache服务挂起Asynchronous AcceptEx failed.

阅读更多

最近在使用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

最终解决问题

欢迎大家访问我的个人网站 萌萌的IT人
1
0
分享到:
评论

相关推荐

    Asynchronous Design Methodologies.pdf

    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

    标题中的“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

    标题“The-asynchronous-call.rar_The Call”提示我们,这个压缩包可能包含与异步调用相关的资源,可能是代码示例、教程或者API文档。 异步调用通常涉及到以下几个核心概念: 1. **回调函数(Callback Function)*...

    藏经阁-An Asynchronous Parameter Serv.pdf

    藏经阁-An Asynchronous Parameter Server for Spark 本节将详细介绍异步参数服务器(Asynchronous Parameter Server)在 Spark 中的应用,及其在机器学习算法和模型中的角色。 异步参数服务器是 Spark 中的一种...

    AJAX.Creating.Web.Pages.With.Asynchronous.JavaScript.And.XML.2006.eBooK-BBL

    Using Ajax, you can build Web applications with the sophistication and usability of traditional desktop &lt;br/&gt;applications and you can do it using standards and open source software....

    A C library for asynchronous DNS requests.zip

    通过这些特性,"A C library for asynchronous DNS requests" 可以帮助开发人员构建更高效、更响应迅速的网络应用程序,特别是对于那些需要频繁进行DNS查询的服务来说,比如负载均衡器、CDN(内容分发网络)系统或者...

    Simulation and Synthesis Techniques for Asynchronous FIFO Design with Asynchronous Pointer Comparisons.pdf

    本文《Simulation and Synthesis Techniques for Asynchronous FIFO Design with Asynchronous Pointer Comparisons》由Clifford E. Cummings和Peter Alfke撰写,详细介绍了异步FIFO设计中的一种创新技术——异步...

    Asynchronous_impulse.zip_impulse_无时钟同步的声脉冲响应测量

    无时钟同步的声脉冲响应测量,模拟测试信号的噪声、混响、异步记录,估计时钟漂移和脉冲响应。

    Asynchronous IO with Boost.Asio - Michael Caisse - CppCon 2016.pdf

    Proactor模型通过一个或多个异步操作服务进程来完成I/O操作,从而允许应用程序继续执行,直到操作完成时才接收事件通知。这种模型被证明在处理大量并发I/O操作时非常有效。 5. 可扩展性与可移植性 Asio不仅支持大量...

    ICE 学报 第四期

    Asynchronous Programming ..........................................2 Avoiding Deadlocks, Part I ........................................9 FAQ Corner ......................................................

    Asynchronous Java made easier.zip

    "Asynchronous Java made easier.zip"这个压缩包文件可能包含一个名为"parseq-master"的项目,该项目可能是为了简化Java中的异步编程而设计的。Parseq是一个高效的异步计算库,它提供了简洁、直观的API来处理复杂的...

    Combine Asynchronous Programming with Swift.zip

    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-...

    asicnhronousengine.zip_WORKING_asynchronous motor

    This model imitates wotking of unduction motor. This is a simple example for understanding asynchronous machine working.

    ISSI SRAM全系列RAM存储芯片ALIUTM原理图库PCB库(AD集成库).zip

    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 ...

    Asynchronous UI.rar

    在C#编程中,异步UI(Asynchronous UI)是一个重要的概念,特别是在开发Windows桌面应用程序时,如Winform应用。这种技术允许程序在不阻塞用户界面(UI)的情况下执行耗时的操作,如数据加载、文件操作或网络通信。...

    ISSI SRAM 芯片全系列原理图库+PCB封装库(AD集成库).zip

    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 ...

    Asynchronous networking for C .zip

    这样可以避免线程在等待I/O操作完成时被挂起,提高程序响应性。 5. **异步I/O(Asynchronous I/O)**:POSIX标准提供了`aio`库,可以进行异步文件读写。但对网络套接字的支持并不普遍,一般需要依赖特定的操作系统...

    [EBOOK]Asynchronous Circuit Design--Chris.J.Myers(包含源代码).rar

    [EBOOK]Asynchronous Circuit Design--Chris.J.Myers(包含源代码) With asynchronous circuit design becoming a powerful tool in the development of new digital systems, circuit designers are expected to ...

Global site tag (gtag.js) - Google Analytics