On Tue, Nov 27, 2001 at 01:01:49PM -0600, Lisa Wojcik wrote:
> Nothing gets written to foo.out.
Can you please try this patch - it'd give a bit more help? My
guess is that we can't open the socket at all (obviously). With
this patch, you should see search.apache.org if you are using the
round-robin.xml from the CVS repository.
I probably should commit this patch anyway, but...
If you can provide details about your OS, etc - that'd be
helpful as I can't reproduce this problem here. -- justin
Index: flood_profile.c
===================================================================
RCS file: /home/cvs/httpd-test/flood/flood_profile.c,v
retrieving revision 1.18
diff -u -r1.18 flood_profile.c
--- flood_profile.c 2001/11/17 01:23:56 1.18
+++ flood_profile.c 2001/11/27 19:13:43
@@ -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;
}