Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[3708] cherokee/trunk/cherokee/handler_server_info.c: Exports the number of accepts and timeouts.

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Oct 15, 2009, 12:56 AM

Post #1 of 1 (132 views)
Permalink
[3708] cherokee/trunk/cherokee/handler_server_info.c: Exports the number of accepts and timeouts.

Revision: 3708
http://svn.cherokee-project.com/changeset/3708
Author: alo
Date: 2009-10-15 09:56:38 +0200 (Thu, 15 Oct 2009)

Log Message:
-----------
Exports the number of accepts and timeouts. Those values were missing
from the statistics data reported from the server_info handler.

Modified Paths:
--------------
cherokee/trunk/cherokee/handler_server_info.c

Modified: cherokee/trunk/cherokee/handler_server_info.c
===================================================================
--- cherokee/trunk/cherokee/handler_server_info.c 2009-10-14 22:43:36 UTC (rev 3707)
+++ cherokee/trunk/cherokee/handler_server_info.c 2009-10-15 07:56:38 UTC (rev 3708)
@@ -380,6 +380,24 @@
cherokee_dwriter_cstring (writer, "unknown");
}

+ cherokee_dwriter_cstring (writer, "accepts");
+ if (srv->collector != NULL) {
+ cherokee_buffer_clean (&tmp);
+ cherokee_buffer_add_fsize (&tmp, COLLECTOR(srv->collector)->accepts);
+ cherokee_dwriter_bstring (writer, &tmp);
+ } else {
+ cherokee_dwriter_cstring (writer, "unknown");
+ }
+
+ cherokee_dwriter_cstring (writer, "timeouts");
+ if (srv->collector != NULL) {
+ cherokee_buffer_clean (&tmp);
+ cherokee_buffer_add_fsize (&tmp, COLLECTOR(srv->collector)->timeouts);
+ cherokee_dwriter_bstring (writer, &tmp);
+ } else {
+ cherokee_dwriter_cstring (writer, "unknown");
+ }
+
/* Per Virtual Server
*/
cherokee_dwriter_cstring (writer, "vservers");

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.