2008年7月1日星期二

isafer 和apache冲突

APACHE 官方文档:

Win32DisableAcceptEx 指令
说明 使用accept()代替AcceptEx()接受网络链接
语法 Win32DisableAcceptEx
默认值 AcceptEx()是默认的,使用这个指令将禁用它。
作用域 server config
状态 MPM
模块 mpm_winnt
兼容性 仅在 Apache 2.0.49 及以后的版本中可用

AcceptEx()是一个微软的WinSock2 API ,通过使用BSD风格的accept() API提供了性能改善。一些流行的
Windows产品,比如防病毒软件或虚拟专用网络软件,会干扰AcceptEx()的正确操作。如果你遇到类似于如下的错误:

[error] (730038)An operation was attempted on something that is not a
socket.: winnt_accept: AcceptEx failed. Attempting to recover.

你就需要使用这个指令来禁止使用AcceptEx() 。


關掉 AcceptEx() 的方式只要在 httpd.conf 找到 區段,加入
Win32DisableAcceptEx 就可以了。


Win32DisableAcceptEx #加入這一行
ThreadsPerChild 250
MaxRequestsPerChild 0


然後重新啟動 Apache

没有评论: