You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/12/06 06:04:07 UTC
[trafficserver] branch quic-latest updated: Check _write_vio is
initialized
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 <ma...@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" <co...@trafficserver.apache.org>'].