trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] 02/03: Remove QUICConnectionState
Date Mon, 14 Aug 2017 08:34:33 GMT
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 <maskit@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" <commits@trafficserver.apache.org>.

Mime
View raw message