This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  9cebbab   fix , remove not used  array `buf` in `rcv_data_frame()`
9cebbab is described below

commit 9cebbab70f54abb3c8d14f6287ad8a0e59186b74
Author: byronhe <[email protected]>
AuthorDate: Thu Mar 23 03:25:57 2017 +0800

    fix , remove not used  array `buf` in `rcv_data_frame()`
    
    fix , remove not used  array `buf` in `rcv_data_frame()`
---
 proxy/http2/Http2ConnectionState.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/proxy/http2/Http2ConnectionState.cc 
b/proxy/http2/Http2ConnectionState.cc
index 65a694a..f17ed3b 100644
--- a/proxy/http2/Http2ConnectionState.cc
+++ b/proxy/http2/Http2ConnectionState.cc
@@ -66,7 +66,6 @@ read_rcv_buffer(char *buf, size_t bufsize, unsigned &nbytes, 
const Http2Frame &f
 static Http2Error
 rcv_data_frame(Http2ConnectionState &cstate, const Http2Frame &frame)
 {
-  char buf[BUFFER_SIZE_FOR_INDEX(buffer_size_index[HTTP2_FRAME_TYPE_DATA])];
   unsigned nbytes               = 0;
   Http2StreamId id              = frame.header().streamid;
   uint8_t pad_length            = 0;
@@ -145,7 +144,7 @@ rcv_data_frame(Http2ConnectionState &cstate, const 
Http2Frame &frame)
   // second time through
   IOBufferReader *myreader = frame.reader()->clone();
   while (nbytes < payload_length - pad_length) {
-    size_t read_len = sizeof(buf);
+    size_t read_len = 
BUFFER_SIZE_FOR_INDEX(buffer_size_index[HTTP2_FRAME_TYPE_DATA]);
     if (nbytes + read_len > unpadded_length) {
       read_len -= nbytes + read_len - unpadded_length;
     }

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to