You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by br...@apache.org on 2015/02/12 22:46:44 UTC

trafficserver git commit: Small optimization bringing stack local into smaller scope

Repository: trafficserver
Updated Branches:
  refs/heads/master 6128bfaaa -> 58a0eff5d


Small optimization bringing stack local into smaller scope


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

Branch: refs/heads/master
Commit: 58a0eff5df940e969e04e6c22a5c24c01f728986
Parents: 6128bfa
Author: Brian Geffon <br...@apache.org>
Authored: Thu Feb 12 13:46:27 2015 -0800
Committer: Brian Geffon <br...@apache.org>
Committed: Thu Feb 12 13:46:27 2015 -0800

----------------------------------------------------------------------
 proxy/spdy/SpdyClientSession.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/58a0eff5/proxy/spdy/SpdyClientSession.cc
----------------------------------------------------------------------
diff --git a/proxy/spdy/SpdyClientSession.cc b/proxy/spdy/SpdyClientSession.cc
index 7f2c6b6..2b9ed50 100644
--- a/proxy/spdy/SpdyClientSession.cc
+++ b/proxy/spdy/SpdyClientSession.cc
@@ -425,8 +425,8 @@ spdy_read_fetch_body_callback(spdylay_session * /*session*/, int32_t stream_id,
       Debug("spdy", "----Request[%" PRIu64 ":%d] %s %lld %d", sm->sm_id, req->stream_id,
             req->url.c_str(), (end_time - req->start_time)/TS_HRTIME_MSECOND,
             req->fetch_data_len);
-      unsigned char digest[MD5_DIGEST_LENGTH];
       if (is_debug_tag_set("spdy")) {
+        unsigned char digest[MD5_DIGEST_LENGTH];
         MD5_Final(digest, &req->recv_md5);
         char md5_strbuf[MD5_DIGEST_LENGTH * 2 + 1];
         for (int i = 0; i < MD5_DIGEST_LENGTH; i++) {