trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject [trafficserver] branch quic-latest updated: move state change in _write_to_read_vio
Date Tue, 19 Sep 2017 01:12:08 GMT
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 0d3bd62  move state change in _write_to_read_vio
0d3bd62 is described below

commit 0d3bd625dd84405fb0ac42ebd5e3d37715f59b33
Author: scw00 <scw00@apache.org>
AuthorDate: Mon Sep 18 15:50:23 2017 +0800

    move state change in _write_to_read_vio
---
 iocore/net/quic/QUICStream.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iocore/net/quic/QUICStream.cc b/iocore/net/quic/QUICStream.cc
index ebc0178..72ab230 100644
--- a/iocore/net/quic/QUICStream.cc
+++ b/iocore/net/quic/QUICStream.cc
@@ -260,6 +260,8 @@ QUICStream::_write_to_read_vio(const std::shared_ptr<const QUICStreamFrame>
&fra
   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());
+
+  this->_state.update_with_received_frame(*frame);
 }
 
 void
@@ -290,7 +292,6 @@ QUICStream::recv(const std::shared_ptr<const QUICStreamFrame> frame)
     this->reset();
     return QUICError(QUICErrorClass::QUIC_TRANSPORT, QUICErrorCode::INTERNAL_ERROR);
   }
-  this->_state.update_with_received_frame(*frame);
 
   // Flow Control - Even if it's allowed to receive on the state, it may exceed the limit
   QUICError error = this->_local_flow_controller->update(frame->offset() + frame->data_length());

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

Mime
View raw message