trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject svn commit: r1056608 - in /trafficserver/traffic/trunk/proxy/http2: HttpTransact.cc HttpTransactHeaders.cc
Date Sat, 08 Jan 2011 03:11:55 GMT
Author: jesus
Date: Sat Jan  8 03:11:54 2011
New Revision: 1056608

URL: http://svn.apache.org/viewvc?rev=1056608&view=rev
Log:
these don't work under Sun Studio on the buildbot

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

Modified: trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc?rev=1056608&r1=1056607&r2=1056608&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc (original)
+++ trafficserver/traffic/trunk/proxy/http2/HttpTransact.cc Sat Jan  8 03:11:54 2011
@@ -1301,8 +1301,9 @@ HttpTransact::HandleApiErrorJump(State* 
     generic HTTP/1.X 500 INKApi Error
   **/
   if ( s->http_return_code && s->http_return_code >= HTTP_STATUS_BAD_REQUEST
) {
+    const char *reason = http_hdr_reason_lookup(s->http_return_code);;
     build_response(s, &s->hdr_info.client_response, s->client_info.http_version,
s->http_return_code,
-                   http_hdr_reason_lookup(s->http_return_code)?:"Error" );
+                   reason?reason:"Error" );
   }
   else {
     build_response(s, &s->hdr_info.client_response, s->client_info.http_version,

Modified: trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc?rev=1056608&r1=1056607&r2=1056608&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc (original)
+++ trafficserver/traffic/trunk/proxy/http2/HttpTransactHeaders.cc Sat Jan  8 03:11:54 2011
@@ -957,7 +957,7 @@ HttpTransactHeaders::insert_warning_head
   else
     warn_text_len = 0; // Make sure it's really zero
 
-  char warning_text[bufsize];
+  char *warning_text = alloca(bufsize);
 
   len = snprintf(warning_text, bufsize, "%3d %s %.*s", code, http_config_param->proxy_response_via_string,
warn_text_len, warn_text);
   header->value_set(MIME_FIELD_WARNING, MIME_LEN_WARNING, warning_text, len);



Mime
View raw message