Updated Branches:
  refs/heads/master 1b66ce806 -> 97284401a

Fix stats_over_http to use the right MAX int


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/97284401
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/97284401
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/97284401

Branch: refs/heads/master
Commit: 97284401ad779bf4fed7d68c2975a52ec78034bc
Parents: 1b66ce8
Author: Leif Hedstrom <[email protected]>
Authored: Thu Mar 8 14:52:09 2012 -0700
Committer: Leif Hedstrom <[email protected]>
Committed: Thu Mar 8 14:52:09 2012 -0700

----------------------------------------------------------------------
 plugins/stats_over_http/stats_over_http.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/97284401/plugins/stats_over_http/stats_over_http.c
----------------------------------------------------------------------
diff --git a/plugins/stats_over_http/stats_over_http.c 
b/plugins/stats_over_http/stats_over_http.c
index f6c3f14..f93ce08 100644
--- a/plugins/stats_over_http/stats_over_http.c
+++ b/plugins/stats_over_http/stats_over_http.c
@@ -87,8 +87,8 @@ stats_add_data_to_resp_buffer(const char *s, stats_state * 
my_state)
 static int
 stats_add_resp_header(stats_state * my_state)
 {
-  char resp[] = "HTTP/1.0 200 Ok\r\n"
-    "Content-Type: text/javascript\r\nCache-Control: no-cache\r\n\r\n";
+  char resp[] = "HTTP/1.0 200 Ok\r\nContent-Type: 
text/javascript\r\nCache-Control: no-cache\r\n\r\n";
+
   return stats_add_data_to_resp_buffer(resp, my_state);
 }
 
@@ -99,7 +99,7 @@ stats_process_read(TSCont contp, TSEvent event, stats_state * 
my_state)
   if (event == TS_EVENT_VCONN_READ_READY) {
     my_state->output_bytes = stats_add_resp_header(my_state);
     TSVConnShutdown(my_state->net_vc, 1, 0);
-    my_state->write_vio = TSVConnWrite(my_state->net_vc, contp, 
my_state->resp_reader, INT_MAX);
+    my_state->write_vio = TSVConnWrite(my_state->net_vc, contp, 
my_state->resp_reader, INT64_MAX);
   } else if (event == TS_EVENT_ERROR) {
     TSError("stats_process_read: Received TS_EVENT_ERROR\n");
   } else if (event == TS_EVENT_VCONN_EOS) {
@@ -190,6 +190,7 @@ stats_dostuff(TSCont contp, TSEvent event, void *edata)
   }
   return 0;
 }
+
 static int
 stats_origin(TSCont contp, TSEvent event, void *edata)
 {

Reply via email to