You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2015/08/31 21:36:44 UTC

trafficserver git commit: TS-3875: Have SPDY allocate the MIOBuffers directly so we can track memory usage better

Repository: trafficserver
Updated Branches:
  refs/heads/master b4ff34887 -> 15c27d277


TS-3875: Have SPDY allocate the MIOBuffers directly so we can track memory usage better


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

Branch: refs/heads/master
Commit: 15c27d277057421b1dcae868db55772da3b84298
Parents: b4ff348
Author: Bryan Call <bc...@apache.org>
Authored: Mon Aug 31 12:36:10 2015 -0700
Committer: Bryan Call <bc...@apache.org>
Committed: Mon Aug 31 12:36:10 2015 -0700

----------------------------------------------------------------------
 proxy/spdy/SpdyClientSession.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/15c27d27/proxy/spdy/SpdyClientSession.cc
----------------------------------------------------------------------
diff --git a/proxy/spdy/SpdyClientSession.cc b/proxy/spdy/SpdyClientSession.cc
index 7b2cbb7..91070ae 100644
--- a/proxy/spdy/SpdyClientSession.cc
+++ b/proxy/spdy/SpdyClientSession.cc
@@ -192,10 +192,10 @@ SpdyClientSession::new_connection(NetVConnection *new_vc, MIOBuffer *iobuf, IOBu
 
   sm->init(new_vc);
 
-  sm->req_buffer = iobuf ? reinterpret_cast<TSIOBuffer>(iobuf) : TSIOBufferCreate();
+  sm->req_buffer = iobuf ? reinterpret_cast<TSIOBuffer>(iobuf) : reinterpret_cast<TSIOBuffer>(new_empty_MIOBuffer());
   sm->req_reader = reader ? reinterpret_cast<TSIOBufferReader>(reader) : TSIOBufferReaderAlloc(sm->req_buffer);
 
-  sm->resp_buffer = TSIOBufferCreate();
+  sm->resp_buffer = reinterpret_cast<TSIOBuffer>(new_empty_MIOBuffer());
   sm->resp_reader = TSIOBufferReaderAlloc(sm->resp_buffer);
 
   eventProcessor.schedule_imm(sm, ET_NET);