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/10 06:43:19 UTC
[trafficserver] branch quic-latest updated: Send data from stream 0
first
This is an automated email from the ASF dual-hosted git repository.
maskit 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 cf3c8e5 Send data from stream 0 first
cf3c8e5 is described below
commit cf3c8e54af3a7a88c6f4abc11ff67235bbf96687
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Tue Apr 10 15:41:59 2018 +0900
Send data from stream 0 first
---
iocore/net/quic/QUICStreamManager.cc | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/iocore/net/quic/QUICStreamManager.cc b/iocore/net/quic/QUICStreamManager.cc
index 9cefeb7..6fbf258 100644
--- a/iocore/net/quic/QUICStreamManager.cc
+++ b/iocore/net/quic/QUICStreamManager.cc
@@ -345,7 +345,20 @@ QUICStreamManager::generate_frame(uint16_t connection_credit, uint16_t maximum_f
{
// FIXME We should pick a stream based on priority
QUICFrameUPtr frame = QUICFrameFactory::create_null_frame();
+
+ // Stream 0 must be prioritized over other streams
+ QUICStream *stream = this->_find_stream(STREAM_ID_FOR_HANDSHAKE);
+ if (stream) {
+ frame = stream->generate_frame(connection_credit, maximum_frame_size);
+ if (frame) {
+ return frame;
+ }
+ }
+
for (QUICStream *s = this->stream_list.head; s; s = s->link.next) {
+ if (s->id() == STREAM_ID_FOR_HANDSHAKE) {
+ continue;
+ }
frame = s->generate_frame(connection_credit, maximum_frame_size);
if (frame) {
break;
--
To stop receiving notification emails like this one, please contact
maskit@apache.org.