trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From masa...@apache.org
Subject [trafficserver] 01/02: Fix packet type selection logic on client side
Date Wed, 28 Mar 2018 05:22:20 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

commit 133e1082a5bb6e2b15ffee6a53ad572ef481987e
Author: Masaori Koshiba <masaori@apache.org>
AuthorDate: Wed Mar 28 14:21:17 2018 +0900

    Fix packet type selection logic on client side
---
 iocore/net/QUICNetVConnection.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 2709454..a76aca8 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -1192,13 +1192,13 @@ QUICNetVConnection::_build_packet(ats_unique_buf buf, size_t len,
bool retransmi
 
   // TODO: support NET_VCONNECTION_IN
   if (this->get_context() == NET_VCONNECTION_OUT && type == QUICPacketType::UNINITIALIZED)
{
-    if (this->_handshake_handler && this->_handshake_handler->is_completed())
{
-      type = QUICPacketType::PROTECTED;
-    } else if (this->_last_received_packet_type == QUICPacketType::UNINITIALIZED ||
-               this->_last_received_packet_type == QUICPacketType::RETRY) {
+    if (this->_last_received_packet_type == QUICPacketType::UNINITIALIZED ||
+        this->_last_received_packet_type == QUICPacketType::RETRY) {
       type = QUICPacketType::INITIAL;
     } else if (_last_received_packet_type == QUICPacketType::HANDSHAKE) {
       type = QUICPacketType::HANDSHAKE;
+    } else if (this->_handshake_handler && this->_handshake_handler->is_completed())
{
+      type = QUICPacketType::PROTECTED;
     }
   }
 

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

Mime
View raw message