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/03/28 05:22:20 UTC
[trafficserver] 01/02: Fix packet type selection logic on client
side
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 <ma...@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.