Bug 42858 - OS 64 (winnt_accept: Asynchronous AcceptEx failed) possible cause?
Summary: OS 64 (winnt_accept: Asynchronous AcceptEx failed) possible cause?
Status: RESOLVED DUPLICATE of bug 11997
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.2.4
Hardware: HP Windows 2000
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 05:27 UTC by Ruben de Graaf
Modified: 2007-07-12 07:17 UTC (History)
0 users



Attachments
main HTML page (946 bytes, text/plain)
2007-07-11 05:28 UTC, Ruben de Graaf
Details
Second html page (322 bytes, text/plain)
2007-07-11 05:29 UTC, Ruben de Graaf
Details
Picture used in example (121.21 KB, image/gif)
2007-07-11 05:29 UTC, Ruben de Graaf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben de Graaf 2007-07-11 05:27:02 UTC
Lately I frequently see the error message: [warn] (OS 64)The specified network 
name is no longer available.  : winnt_accept: Asynchronous AcceptEx failed.

I updated Apache (to 2.2.4) and PHP (to 5.2.3), but the problem persists.

After studying the traffic log and locating traffic at or just before the error 
date/time, I found that a combination of two pages always produces this error.

test.phtml -> HTML file (no PHP in it) that calls a second page with a 
parameter (added to the URL, e.g. ?subpage=1).

test2.phtml -> PHP file with a reference to $subpage (without using $_GET 
properly).

Works fine, until I put in an onload in the BODY tag of index.phtml. From off 
that moment, whenever I go to test2.phtml and then use the back button, the OS 
64 error is added to the log. NOTE: This only happens when the logop.gif is 
used as a background of the div (http://www.newthesis.com/images/logop.gif)

Here are the two files:

[file test.phtml]
<HTML>
<HEAD>
<script language="Javascript">
function setcontentpos(startup)
{
   x = Math.round((document.body.clientWidth-800)/2);
   y = Math.round((document.body.clientHeight-600)/2);
   if (x<1) {x=1;}
   if (y<1) {y=1;}
   document.getElementById('content').style.left=x;
   document.getElementById('content').style.top=y;
   if (startup==1)
   {
      document.getElementById('content').style.display='inline';
      document.getElementById('contenthidden').style.display='none';
   }   
}
</script>
</HEAD>
<body id="body" onload="setcontentpos(1)" onresize="setcontentpos(0)">
<div id="content" style="position : absolute; width : 800px; height : 600px; 
left : 1px; top : 1px; background-position : center; background-image:url
('images/logop.gif'); background-repeat : no-repeat; display : none;">
<INPUT TYPE="BUTTON" onclick="self.navigate('test2.phtml?subpage=1');" 
VALUE="go to page 1">
</div>
</BODY>
</HTML>
[/file]

[file test2.phtml]
<HTML>
<HEAD>
</HEAD>
<BODY>
Got news today...<BR><BR>
<?
   $hr="</span></div><BR><HR><BR>\n";
   switch ($subpage)
   {
      case 1 : echo "Company".$hr;
      break;
      case 2 : echo "People".$hr; 
      break;
      case 3 : echo "Partners".$hr; 
      break;
      
   }
   
?>
</BODY>
</HTML>
[/file]
Comment 1 Ruben de Graaf 2007-07-11 05:28:54 UTC
Created attachment 20490 [details]
main HTML page
Comment 2 Ruben de Graaf 2007-07-11 05:29:23 UTC
Created attachment 20491 [details]
Second html page
Comment 3 Ruben de Graaf 2007-07-11 05:29:54 UTC
Created attachment 20492 [details]
Picture used in example
Comment 4 Ruben de Graaf 2007-07-11 06:54:35 UTC
Note: I've set my browser to check for a newer version of pages at each visit
Comment 5 Ruben de Graaf 2007-07-12 07:17:03 UTC
Appears this had to do with the setting Win32DisableAcceptEx. After adding this 
to the httpd.conf file the problem was solved.

Plus: instead of getting the IP address 0.0.0.0 in my access logs, I started 
receiving the proper IP's again.

*** This bug has been marked as a duplicate of 11997 ***