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 2018/04/02 02:37:00 UTC

[trafficserver] branch quic-latest updated: Check every stream in QUICStreamManager::will_generate_frame()

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 6726567  Check every stream in QUICStreamManager::will_generate_frame()
6726567 is described below

commit 6726567e60c83efb1605bbf6a3ddb200a3ca09de
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Mon Apr 2 11:29:24 2018 +0900

    Check every stream in QUICStreamManager::will_generate_frame()
    
    QUICStream might be in the stream_list, if it doesn't have any data to send.
---
 iocore/net/quic/QUICStreamManager.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/iocore/net/quic/QUICStreamManager.cc b/iocore/net/quic/QUICStreamManager.cc
index c636f5b..3ff654d 100644
--- a/iocore/net/quic/QUICStreamManager.cc
+++ b/iocore/net/quic/QUICStreamManager.cc
@@ -316,7 +316,13 @@ QUICStreamManager::reset_recv_offset()
 bool
 QUICStreamManager::will_generate_frame()
 {
-  return this->stream_list.head;
+  for (QUICStream *s = this->stream_list.head; s; s = s->link.next) {
+    if (s->will_generate_frame()) {
+      return true;
+    }
+  }
+
+  return false;
 }
 
 QUICFrameUPtr

-- 
To stop receiving notification emails like this one, please contact
masaori@apache.org.