mturk 2005/06/18 08:10:22
Modified: jni/native/src network.c
Log:
Add TRACE for connection closed errors.
Revision Changes Path
1.34 +15 -1 jakarta-tomcat-connectors/jni/native/src/network.c
Index: network.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jni/native/src/network.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- network.c 18 Jun 2005 14:34:28 -0000 1.33
+++ network.c 18 Jun 2005 15:10:22 -0000 1.34
@@ -37,6 +37,7 @@
static volatile apr_off_t sp_tot_recv = 0;
static volatile apr_uint32_t sp_err_recv = 0;
static volatile apr_uint32_t sp_tmo_recv = 0;
+static volatile apr_uint32_t sp_rst_recv = 0;
/* Fake private pool struct to deal with APR private's socket
* struct not exposing function to access the pool.
@@ -81,6 +82,7 @@
fprintf(stderr, "Average recv lenght : %.2f\n",
(double)sp_tot_recv/(double)sp_num_recv);
fprintf(stderr, "Receive timeouts : %d\n", sp_tmo_recv);
fprintf(stderr, "Receive errors : %d\n", sp_err_recv);
+ fprintf(stderr, "Receive resets : %d\n", sp_rst_recv);
}
#endif
@@ -600,6 +602,9 @@
if (APR_STATUS_IS_ETIMEDOUT(ss) ||
APR_STATUS_IS_TIMEUP(ss))
sp_tmo_recv++;
+ else if (APR_STATUS_IS_ECONNABORTED(ss) ||
+ APR_STATUS_IS_ECONNRESET(ss))
+ sp_rst_recv++;
else
sp_err_recv++;
}
@@ -654,6 +659,9 @@
if (APR_STATUS_IS_ETIMEDOUT(ss) ||
APR_STATUS_IS_TIMEUP(ss))
sp_tmo_recv++;
+ else if (APR_STATUS_IS_ECONNABORTED(ss) ||
+ APR_STATUS_IS_ECONNRESET(ss))
+ sp_rst_recv++;
else
sp_err_recv++;
}
@@ -693,6 +701,9 @@
if (APR_STATUS_IS_ETIMEDOUT(ss) ||
APR_STATUS_IS_TIMEUP(ss))
sp_tmo_recv++;
+ else if (APR_STATUS_IS_ECONNABORTED(ss) ||
+ APR_STATUS_IS_ECONNRESET(ss))
+ sp_rst_recv++;
else
sp_err_recv++;
}
@@ -741,6 +752,9 @@
if (APR_STATUS_IS_ETIMEDOUT(ss) ||
APR_STATUS_IS_TIMEUP(ss))
sp_tmo_recv++;
+ else if (APR_STATUS_IS_ECONNABORTED(ss) ||
+ APR_STATUS_IS_ECONNRESET(ss))
+ sp_rst_recv++;
else
sp_err_recv++;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]