httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/support ab.dsp ab.c
Date Fri, 28 Apr 2000 01:37:42 GMT
trawick     00/04/27 18:37:42

  Modified:    src      Apache.dsw
               src/support ab.c
  Added:       src/support ab.dsp
  Log:
  Build ab on Win32.
  Fix some minor ab APR-ization issues.
  
  Revision  Changes    Path
  1.7       +12 -0     apache-2.0/src/Apache.dsw
  
  Index: Apache.dsw
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/Apache.dsw,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Apache.dsw	2000/04/25 22:33:43	1.6
  +++ Apache.dsw	2000/04/28 01:37:41	1.7
  @@ -324,6 +324,18 @@
   
   ###############################################################################
   
  +Project: "ab"=".\support\ab.dsp" - Package Owner=<4>
  +
  +Package=<5>
  +{{{
  +}}}
  +
  +Package=<4>
  +{{{
  +}}}
  +
  +###############################################################################
  +
   Project: "ap"=".\ap\ap.dsp" - Package Owner=<4>
   
   Package=<5>
  
  
  
  1.10      +8 -7      apache-2.0/src/support/ab.c
  
  Index: ab.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/support/ab.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- ab.c	2000/04/27 20:11:34	1.9
  +++ ab.c	2000/04/28 01:37:42	1.10
  @@ -465,6 +465,8 @@
   
   static void start_connect(struct connection *c)
   {
  +    ap_status_t rv;
  +
       c->read = 0;
       c->bread = 0;
       c->keepalive = 0;
  @@ -478,16 +480,15 @@
           err("Port:");
       }
       c->start = ap_now();
  -    if (ap_connect(c->aprsock, hostname) != APR_SUCCESS) {
  -        if (errno == APR_EINPROGRESS) {
  +    if ((rv = ap_connect(c->aprsock, hostname)) != APR_SUCCESS) {
  +        if (ap_canonical_error(rv) == APR_EINPROGRESS) {
               c->state = STATE_CONNECTING;
               ap_add_poll_socket(readbits, c->aprsock, APR_POLLOUT);
               return;
           }
           else {
  -            /* we done't have to close the socket.  If we have an error this
  -             * bad, ap_connect will destroy it for us.
  -             */
  +            ap_remove_poll_socket(readbits, c->aprsock);
  +            ap_close_socket(c->aprsock);
               err_conn++;
               if (bad++ > 10) {
                   err("\nTest aborted after 10 failures\n\n");
  @@ -839,14 +840,14 @@
   static void copyright(void)
   {
       if (!use_html) {
  -        printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.9 $>
apache-2.0");
  +        printf("This is ApacheBench, Version %s\n", VERSION " <$Revision: 1.10 $>
apache-2.0");
           printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
           printf("Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/\n");
           printf("\n");
       }
       else {
           printf("<p>\n");
  -        printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i>
apache-2.0<br>\n", VERSION, "$Revision: 1.9 $");
  +        printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i>
apache-2.0<br>\n", VERSION, "$Revision: 1.10 $");
           printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
           printf(" Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/<br>\n");
           printf("</p>\n<p>\n");
  
  
  
  1.1                  apache-2.0/src/support/ab.dsp
  
  Index: ab.dsp
  ===================================================================
  # Microsoft Developer Studio Project File - Name="ab" - Package Owner=<4>
  # Microsoft Developer Studio Generated Build File, Format Version 5.00
  # ** DO NOT EDIT **
  
  # TARGTYPE "Win32 (x86) Console Application" 0x0103
  
  CFG=ab - Win32 Debug
  !MESSAGE This is not a valid makefile. To build this project using NMAKE,
  !MESSAGE use the Export Makefile command and run
  !MESSAGE 
  !MESSAGE NMAKE /f "ab.mak".
  !MESSAGE 
  !MESSAGE You can specify a configuration when running NMAKE
  !MESSAGE by defining the macro CFG on the command line. For example:
  !MESSAGE 
  !MESSAGE NMAKE /f "ab.mak" CFG="ab - Win32 Debug"
  !MESSAGE 
  !MESSAGE Possible choices for configuration are:
  !MESSAGE 
  !MESSAGE "ab - Win32 Release" (based on\
   "Win32 (x86) Console Application")
  !MESSAGE "ab - Win32 Debug" (based on "Win32 (x86) Console Application")
  !MESSAGE 
  
  # Begin Project
  # PROP Scc_ProjName ""
  # PROP Scc_LocalPath ""
  CPP=cl.exe
  RSC=rc.exe
  
  !IF  "$(CFG)" == "ab - Win32 Release"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 0
  # PROP BASE Output_Dir "ab"
  # PROP BASE Intermediate_Dir "ab"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 0
  # PROP Output_Dir ""
  # PROP Intermediate_Dir ""
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD
/c
  # ADD CPP /nologo /MD /W3 /GX /O2 /I "..\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D
"_MBCS" /FD /c
  # SUBTRACT CPP /YX
  # ADD BASE RSC /l 0x409 /d "NDEBUG"
  # ADD RSC /l 0x409 /d "NDEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console
/machine:I386
  # ADD LINK32 kernel32.lib advapi32.lib wsock32.lib ws2_32.lib /nologo /subsystem:console
/machine:I386 /out:"release/ab.exe"
  # SUBTRACT LINK32 /pdb:none
  
  !ELSEIF  "$(CFG)" == "ab - Win32 Debug"
  
  # PROP BASE Use_MFC 0
  # PROP BASE Use_Debug_Libraries 1
  # PROP BASE Output_Dir "ab0"
  # PROP BASE Intermediate_Dir "ab0"
  # PROP BASE Target_Dir ""
  # PROP Use_MFC 0
  # PROP Use_Debug_Libraries 1
  # PROP Output_Dir ""
  # PROP Intermediate_Dir ""
  # PROP Ignore_Export_Lib 0
  # PROP Target_Dir ""
  # ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS"
/YX /FD /c
  # ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\lib\apr\include" /D "WIN32" /D "_DEBUG"
/D "_CONSOLE" /D "_MBCS" /FD /c
  # SUBTRACT CPP /YX
  # ADD BASE RSC /l 0x409 /d "_DEBUG"
  # ADD RSC /l 0x409 /d "_DEBUG"
  BSC32=bscmake.exe
  # ADD BASE BSC32 /nologo
  # ADD BSC32 /nologo
  LINK32=link.exe
  # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console
/debug /machine:I386 /pdbtype:sept
  # ADD LINK32 kernel32.lib advapi32.lib wsock32.lib ws2_32.lib /nologo /subsystem:console
/incremental:no /debug /machine:I386 /out:"debug/ab.exe" /pdbtype:sept
  
  !ENDIF 
  
  # Begin Target
  
  # Name "ab - Win32 Release"
  # Name "ab - Win32 Debug"
  # Begin Source File
  
  SOURCE=.\ab.c
  # End Source File
  # End Target
  # End Project
  
  
  

Mime
View raw message