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/08/27 07:10:17 UTC
[trafficserver] 03/03: Remove handshake stream check
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
commit d9e1e1a86d83ef6fa50ce1a7b76c96df9e4dbc13
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Mon Aug 27 12:57:55 2018 +0900
Remove handshake stream check
---
iocore/net/quic/QUICStreamManager.cc | 4 +---
iocore/net/quic/test/test_QUICStreamManager.cc | 5 -----
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/iocore/net/quic/QUICStreamManager.cc b/iocore/net/quic/QUICStreamManager.cc
index fa8f637..f63715e 100644
--- a/iocore/net/quic/QUICStreamManager.cc
+++ b/iocore/net/quic/QUICStreamManager.cc
@@ -302,9 +302,7 @@ QUICStreamManager::total_offset_received() const
// FIXME Iterating all (open + closed) streams is expensive
for (QUICStream *s = this->stream_list.head; s; s = s->link.next) {
- if (s->id() != 0) {
- total_offset_received += s->largest_offset_received();
- }
+ total_offset_received += s->largest_offset_received();
}
return total_offset_received;
}
diff --git a/iocore/net/quic/test/test_QUICStreamManager.cc b/iocore/net/quic/test/test_QUICStreamManager.cc
index 9f01716..5f21f27 100644
--- a/iocore/net/quic/test/test_QUICStreamManager.cc
+++ b/iocore/net/quic/test/test_QUICStreamManager.cc
@@ -120,11 +120,6 @@ TEST_CASE("QUICStreamManager_total_offset_received", "[quic]")
CHECK(sm.stream_count() == 2);
CHECK(sm.total_offset_received() == 0);
- // Stream 0 shoud be out of flow control
- std::shared_ptr<QUICFrame> stream_frame_0 = QUICFrameFactory::create_stream_frame(data, 1024, 0, 0);
- sm.handle_frame(level, stream_frame_0);
- CHECK(sm.total_offset_received() == 0);
-
// total_offset should be a integer in unit of 1024 octets
std::shared_ptr<QUICFrame> stream_frame_1 = QUICFrameFactory::create_stream_frame(data, 1024, 1, 0);
sm.handle_frame(level, stream_frame_1);