trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From masa...@apache.org
Subject [trafficserver] branch quic-latest updated: Check _write_vio is initialized
Date Wed, 06 Dec 2017 06:04:07 GMT
This is an automated email from the ASF dual-hosted git repository.

masaori 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 331bfb3  Check _write_vio is initialized
331bfb3 is described below

commit 331bfb36ec4bb3f91c93d4f1c858568bb26f50c8
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Wed Dec 6 15:03:54 2017 +0900

    Check _write_vio is initialized
---
 iocore/net/quic/QUICStream.cc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/iocore/net/quic/QUICStream.cc b/iocore/net/quic/QUICStream.cc
index 0dc5cf0..0d9214a 100644
--- a/iocore/net/quic/QUICStream.cc
+++ b/iocore/net/quic/QUICStream.cc
@@ -343,11 +343,13 @@ QUICStream::recv(const std::shared_ptr<const QUICMaxStreamDataFrame>
frame)
   QUICStreamFCDebug("[REMOTE] %" PRIu64 "/%" PRIu64, this->_remote_flow_controller->current_offset(),
                     this->_remote_flow_controller->current_limit());
 
-  // restart sending
-  QUICStreamDebug("restart sending");
+  if (this->_write_vio.op == VIO::WRITE) {
+    // restart sending
+    QUICStreamDebug("restart sending");
 
-  this->_send();
-  this->_signal_write_event(false);
+    this->_send();
+    this->_signal_write_event(false);
+  }
 
   return QUICErrorUPtr(new QUICNoError());
 }

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

Mime
View raw message