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 2017/08/14 08:34:33 UTC

[trafficserver] 02/03: Remove QUICConnectionState

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

commit 52ba71ad38ed36af6a7290f0fa8f9a41adc256f4
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Mon Aug 14 16:59:25 2017 +0900

    Remove QUICConnectionState
---
 iocore/net/P_QUICNetVConnection.h | 10 ----------
 iocore/net/QUICNetVConnection.cc  |  2 --
 2 files changed, 12 deletions(-)

diff --git a/iocore/net/P_QUICNetVConnection.h b/iocore/net/P_QUICNetVConnection.h
index 3bba2e8..67fb93b 100644
--- a/iocore/net/P_QUICNetVConnection.h
+++ b/iocore/net/P_QUICNetVConnection.h
@@ -91,15 +91,6 @@ typedef enum {
   QUIC_HOOK_OP_LAST = QUIC_HOOK_OP_TERMINATE ///< End marker value.
 } QuicVConnOp;
 
-enum class QUICConnectionState {
-  Open = 0,
-  Handshake,
-  Established,
-  TimeWait,
-  Closing,
-  Closed,
-};
-
 //////////////////////////////////////////////////////////////////
 //
 //  class NetVConnection
@@ -193,7 +184,6 @@ private:
   QUICPacketFactory _packet_factory;
   QUICFrameFactory _frame_factory;
   QUICAckFrameCreator _ack_frame_creator;
-  QUICConnectionState _state = QUICConnectionState::Open;
 
   uint32_t _pmtu = 1280;
 
diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index da12ede..ca963fa 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -51,7 +51,6 @@ ClassAllocator<QUICNetVConnection> quicNetVCAllocator("quicNetVCAllocator");
 
 QUICNetVConnection::QUICNetVConnection() : UnixNetVConnection()
 {
-  this->_state = QUICConnectionState::Handshake;
   SET_HANDLER((NetVConnHandler)&QUICNetVConnection::state_handshake);
 }
 
@@ -287,7 +286,6 @@ QUICNetVConnection::state_handshake(int event, Event *data)
 
   if (this->_handshake_handler && this->_handshake_handler->is_completed()) {
     DebugQUICCon("Enter state_connection_established");
-    this->_state = QUICConnectionState::Established;
     SET_HANDLER((NetVConnHandler)&QUICNetVConnection::state_connection_established);
 
     QUICConfig::scoped_config params;

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.