trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r1031383 - /trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc
Date Fri, 05 Nov 2010 01:01:13 GMT
Author: jesus
Date: Fri Nov  5 01:01:13 2010
New Revision: 1031383

URL: http://svn.apache.org/viewvc?rev=1031383&view=rev
Log:
we can't status_get if the source is SOURCE_NONE.. so don't

Modified:
    trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc

Modified: trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc?rev=1031383&r1=1031382&r2=1031383&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc (original)
+++ trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc Fri Nov  5 01:01:13 2010
@@ -8892,7 +8892,8 @@ HttpTransact::client_result_stat(State *
     client_transaction_result = CLIENT_TRANSACTION_RESULT_ERROR_POSSIBLE_ABORT;
   }
   // Count the status codes
-  int status_code = s->hdr_info.client_response.status_get();
+  int status_code = (s->source == SOURCE_NONE) ?
+                      0 : s->hdr_info.client_response.status_get();
   switch(status_code) {
   case 100: HTTP_SUM_TRANS_STAT(http_response_status_100_count_stat, 1); break;
   case 101: HTTP_SUM_TRANS_STAT(http_response_status_101_count_stat, 1); break;



Mime
View raw message