You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/11/03 07:33:35 UTC

DO NOT REPLY [Bug 46139] New: Apache Restart option is not working

https://issues.apache.org/bugzilla/show_bug.cgi?id=46139

           Summary: Apache Restart option is not working
           Product: Apache httpd-2
           Version: 2.2.10
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: pauliu@ateamsys.com


Fresh Apache 2.2.10 installed on Windows XP machine with default config files,
httpd.exe service can be started and working without problem, default page "It
works!" can display. However, restarted Apache by selecting "Restart" from
Windows Start Menu (-k restart) or click Restart in Apache Service Monitor,
Apache Server no longer replying request to the client bowser. To make the
Apache work again, "Stop" & "Start" procedures is needed.

I tried on a Windows 2003 Server with Dual Xeon CPU also has same problem.

This error log is right after click Restart, seems ok but client bowser receive
no respond from Apache and waiting forever.....

[Mon Nov 03 14:26:39 2008] [notice] Apache/2.2.10 (Win32) configured --
resuming normal operations
[Mon Nov 03 14:26:39 2008] [notice] Server built: Oct 10 2008 12:39:04
[Mon Nov 03 14:26:39 2008] [notice] Parent: Created child process 7108
httpd.exe: Could not reliably determine the server's fully qualified domain
name, using 192.168.1.102 for ServerName
httpd.exe: Could not reliably determine the server's fully qualified domain
name, using 192.168.1.102 for ServerName
[Mon Nov 03 14:26:39 2008] [notice] Child 7108: Child process is running
[Mon Nov 03 14:26:40 2008] [notice] Child 7108: Acquired the start mutex.
[Mon Nov 03 14:26:40 2008] [notice] Child 7108: Starting 64 worker threads.
[Mon Nov 03 14:26:40 2008] [notice] Child 7108: Starting thread to listen on
port 80.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46139] Apache Restart option is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46139





--- Comment #2 from Rainer Jung <ra...@kippdata.de>  2009-04-19 12:00:06 PST ---
I tried additionally with

- 2.2.3 nod SSL ASF build
- 2.0.63 SSL ASF build
- 2.0.53 no SSL ASF build

All of them show the above described problem.

Version 1.3.41 does restart correctly.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46139] Apache Restart option is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46139





--- Comment #5 from Rainer Jung <ra...@kippdata.de>  2009-04-27 01:39:40 PST ---
Win32DisableAcceptEx fixes the problem on my test system. Disabling Sendfile
and MMap don't fix it.

I also played a bit with various interfaces and disabling drivers. I used a
normal LAN interface and disabled all drivers except for TCP/IP and also
disabled the Windows firewall. Even when configuring httpd Listen fixed on the
system address, the problem was reproducible. Then I disabled all interfaces
and used Listen to listen on localhost only. Still I got the problem. Disabling
AcceptEx fixed it in all those cases.

When disabling all interfaces and using localhost, the windows routing table
says they are usoing the "MS TCP loopback interface". I didn't find a good way
to retrieve configuration or network stack details for this interface.

There is a lot of additional network related software installed on the system
like VPN software, a VMware player, wireshark etc. So it could well be, that
parts of that influences the accept behaviour, even when I try to disable as
much of it as I'm able to.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46139] Apache Restart option is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46139



--- Comment #7 from Will Rowe <wr...@apache.org> 2009-08-06 20:00:37 PDT ---
It would be good to compare this broken tcp/ip stack with the behavior of httpd
trunk, which is significantly refactored already.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46139] Apache Restart option is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46139





--- Comment #1 from Rainer Jung <ra...@kippdata.de>  2009-04-19 11:35:37 PST ---
I can reproduce the problem.

I tried with 2.2.8 and 2.2.11 (ASF build) and also with my own 2.2.11 build.
ProcessExplorer shows, that directly after the start, the parent owns the
listen, but the child owns the TCP connection for any new request. After
restart, the parent owns request connections. The requests are not answered.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46139] Apache Restart option is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46139





--- Comment #3 from Rainer Jung <ra...@kippdata.de>  2009-04-19 13:31:55 PST ---
Things get more confusing now:

I have two systems running Windows XP Professional Version 2002 SP 3. The
problem does occur on one of them, but not on the other one.

The systems are not identical, like one is German (the broken one), and one
English. The broken one most likely has more up-to-date MS patches and uses
DHCP, the working one is more static and runs as a VMware guest.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46139] Apache Restart option is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46139





--- Comment #6 from Rainer Jung <ra...@kippdata.de>  2009-04-27 04:12:41 PST ---
Actually AcceptEx() returns with 997 (IO_PENDING) after the initial start as
well as after restart. Then the WaitForSingleObject() loop after AcceptEx()
loops with the 1 second timeout until the new connection is accepted and then
passed along to the thread doing the get_connection after start. After restart
the WaitForSingleObject() loop does only return with the timeout all the time
although from the point of view of the client and also of netstat, the
connection is accepted.

As noted before, netstat and ProcessExplorer indicate, that the accepted
connection is related to the parent process, not to the child.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46139] Apache Restart option is not working

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46139





--- Comment #4 from Will Rowe <wr...@apache.org>  2009-04-19 16:18:40 PST ---
The information we need to reproduce this is the network stack of the problem
systems.  E.g. settings, Network Connections, particular connection ->
Properties

We are looking for any 'suspect' components, particularly non-MS elements.

We are also looking for the use of EnableSendfile and DisableWin32AcceptEx.

Finally, it will be very interesting to look at the WinNT MPM in 2.3 trunk.
I'll likely post a backport of this for the 2.2.11 release to compare notes.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org