httpd-test-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-test/flood flood_profile.c
Date Mon, 03 Dec 2001 21:59:31 GMT
jerenkrantz    01/12/03 13:59:31

  Modified:    flood    flood_profile.c
  Log:
  When we die, also indicate which URL we die on.  This doesn't fix the
  problem that some are seeing, but it'll be slightly more helpful.
  
  Revision  Changes    Path
  1.19      +16 -8     httpd-test/flood/flood_profile.c
  
  Index: flood_profile.c
  ===================================================================
  RCS file: /home/cvs/httpd-test/flood/flood_profile.c,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- flood_profile.c	2001/11/17 01:23:56	1.18
  +++ flood_profile.c	2001/12/03 21:59:31	1.19
  @@ -660,7 +660,8 @@
           timer->begin = apr_time_now();
   
           if ((stat = events->begin_conn(socket, req, pool)) != APR_SUCCESS) {
  -            apr_file_printf(local_stderr, "open request failed.\n");
  +            apr_file_printf(local_stderr, "open request failed (%s).\n", 
  +                            req->uri);
               return stat;
           }
   
  @@ -671,7 +672,8 @@
            * But, I'm not sure how to do it otherwise.
            */
           if ((stat = events->create_req(profile, req)) != APR_SUCCESS) {
  -            apr_file_printf(local_stderr, "create request failed.\n");
  +            apr_file_printf(local_stderr, "create request failed (%s).\n", 
  +                            req->uri);
               return stat;
           }
   
  @@ -679,7 +681,8 @@
            * we could take a timer sample here */
   
           if ((stat = events->send_req(socket, req, pool)) != APR_SUCCESS) {
  -            apr_file_printf(local_stderr, "send request failed.\n");
  +            apr_file_printf(local_stderr, "send request failed (%s).\n", 
  +                            req->uri);
               return stat;
           }
   
  @@ -687,7 +690,8 @@
           timer->write = apr_time_now();
   
           if ((stat = events->recv_resp(&resp, socket, pool)) != APR_SUCCESS) {
  -            apr_file_printf(local_stderr, "receive request failed.\n");
  +            apr_file_printf(local_stderr, "receive request failed (%s).\n", 
  +                            req->uri);
               return stat;
           }
   
  @@ -695,17 +699,20 @@
           timer->read = apr_time_now();
   
           if ((stat = events->postprocess(profile, req, resp)) != APR_SUCCESS) {
  -            apr_file_printf(local_stderr, "postprocessing failed.\n");
  +            apr_file_printf(local_stderr, "postprocessing failed (%s).\n", 
  +                            req->uri);
               return stat;
           }
   
           if ((stat = events->verify_resp(&verified, profile, req, resp)) != APR_SUCCESS)
{
  -            apr_file_printf(local_stderr, "Error while verifying query.\n");
  +            apr_file_printf(local_stderr, 
  +                            "Error while verifying query (%s).\n", req->uri);
               return stat;
           }
   
           if ((stat = events->end_conn(socket, req, resp)) != APR_SUCCESS) {
  -            apr_file_printf(local_stderr, "Unable to end the connection.\n");
  +            apr_file_printf(local_stderr, 
  +                            "Unable to end the connection (%s).\n", req->uri);
               return stat;
           }
   
  @@ -715,7 +722,8 @@
           timer->close = apr_time_now();
   
           if ((stat = events->process_stats(report, verified, req, resp, timer)) != APR_SUCCESS)
{
  -            apr_file_printf(local_stderr, "Unable to process statistics.\n");
  +            apr_file_printf(local_stderr, 
  +                            "Unable to process statistics (%s).\n", req->uri);
               return stat;
           }
   
  
  
  

Mime
View raw message