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

scw00 pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 0ee430e  correct the calc of the forward_limit
0ee430e is described below

commit 0ee430e9666ac63b6595d5952a129e3046ee892c
Author: scw00 <sc...@apache.org>
AuthorDate: Tue Sep 12 20:32:22 2017 +0800

    correct the calc of the forward_limit
---
 iocore/net/quic/QUICStream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/net/quic/QUICStream.cc b/iocore/net/quic/QUICStream.cc
index e656874..ebc0178 100644
--- a/iocore/net/quic/QUICStream.cc
+++ b/iocore/net/quic/QUICStream.cc
@@ -256,7 +256,7 @@ QUICStream::_write_to_read_vio(const std::shared_ptr<const 
QUICStreamFrame> &fra
   int bytes_added = this->_read_vio.buffer.writer()->write(frame->data(), 
frame->data_length());
   this->_read_vio.nbytes += bytes_added;
   this->_recv_offset += frame->data_length();
-  this->_local_flow_controller->forward_limit(frame->offset() + 
this->_flow_control_buffer_size);
+  this->_local_flow_controller->forward_limit(this->_recv_offset + 
this->_flow_control_buffer_size);
   Debug("quic_flow_ctrl", "Stream [%" PRIx32 "] [%s] [LOCAL] %" PRIu64 "/%" 
PRIu64, this->_id,
         QUICDebugNames::stream_state(this->_state), 
this->_local_flow_controller->current_offset(),
         this->_local_flow_controller->current_limit());

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Reply via email to