Tom, thanks for the analysis and bug report - your trace follows mine but the getpeername was news to me.
W.R.T. httpd you made the assumption "Windows has the peer name" - which is true with AcceptEx but won't be true in any other context. This is the exception not the rule. So a couple thoughts; Win32 apr_os_socket_put is going to need to learn how to set the local/remote addresses as 'identified' for purposes of working within httpd. And the getpeername bug needs a workaround/hack. All in all - very good catch. Bill Tom Donovan wrote: > I have had some difficulties running 2.2.4 RC on Windows 2000. > > The remote IP is always seen as 0.0.0.0. > Here are a few lines from my logs\access.log: > > 0.0.0.0 - - [07/Jan/2007:11:22:59 -0500] "GET /server-status HTTP/1.1" > 403 215 > 0.0.0.0 - - [07/Jan/2007:11:23:36 -0500] "GET / HTTP/1.1" 200 20417 > > I built with Microsoft Visual C++ 2005, and again with Visual C++ 6.0. > Either set (VC8 or VC6) of binaries runs OK on Windows 2003 and also on > Windows XP. > The problem only occurs when running 2.2.4 on Win2k. > > Apache 2.2.3 built with the same compilers runs OK on all three platforms. > > Has anyone else run 2.2.4 on Windows 2000 yet? > > -tom- > > >> On 1/6/07, William A. Rowe, Jr. <[EMAIL PROTECTED]> wrote: > > . >
