A passionate programmer’s findings in the world of internet.

Apache Error: winnt_accept: Asynchronous AcceptEx failed

July 17th, 2009

Recently, there are some complains about Apache server hang in the middle of data entry. It's something frustrating because after the user entered all data, clicking the submit button failed to submit the data. An experienced user will know that a page refresh resubmits the data, but not a novice user.

For your information, my PHP-MySQL system is running on Apache HTTP server version 2.2 in Microsoft Windows XP environment.

I see the following errors repeating in the log file:
[Fri Jul 03 15:20:52 2009] [warn] (OS 121)The semaphore timeout period has expired. : winnt_accept: Asynchronous AcceptEx failed.
[Fri Jul 03 15:20:52 2009] [warn] (OS 64)The specified network name is no longer available. : winnt_accept: Asynchronous AcceptEx failed.

If you are not sure where's the log file:
C:\Program Files\Apache Software Foundation\Apache2.2\logs\error.log

Solution that works:

As recommended by the Apache documentation, I added Win32DisableAcceptEx directive to the apache configuration file.

Apache configuration file can be found at:
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

I am expecting this to be a Windows specific problem that should be mentioned in Platform Specific Notes for Windows, but it didn't.

Anyway, I solved my problem.


But... on another installation of my system, I encountered a different error in the log file.
child process exited with status 3221225477

It also causes the httpd.exe process to die off suddenly and the user is experiencing the same problem when submitting data. Every result in Google shows a different problem. It seems like the error is a generic one. Do let me know if you have any idea on how to fix this.

If my article helped you solved your problem, consider buy me a beer!

Share this article: del.icio.us | digg it

Related posts:

Comments are closed.