trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch quic-latest updated: Moved the set handler in QUICNetVConnection constructor to init method
Date Thu, 05 Oct 2017 19:00:53 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall 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 e078062  Moved the set handler in QUICNetVConnection constructor to init method
e078062 is described below

commit e07806283172cd91256fc12235738e07607e0742
Author: Bryan Call <bcall@apache.org>
AuthorDate: Thu Oct 5 12:00:14 2017 -0700

    Moved the set handler in QUICNetVConnection constructor to init method
---
 iocore/net/P_QUICNetVConnection.h | 2 +-
 iocore/net/QUICNetVConnection.cc  | 6 +-----
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/iocore/net/P_QUICNetVConnection.h b/iocore/net/P_QUICNetVConnection.h
index 4c0ed6a..339f92e 100644
--- a/iocore/net/P_QUICNetVConnection.h
+++ b/iocore/net/P_QUICNetVConnection.h
@@ -143,7 +143,7 @@ class QUICNetVConnection : public UnixNetVConnection, public QUICConnection
   using super = UnixNetVConnection; ///< Parent type.
 
 public:
-  QUICNetVConnection();
+  QUICNetVConnection() {}
 
   void init(UDPConnection *, QUICPacketHandler *);
 
diff --git a/iocore/net/QUICNetVConnection.cc b/iocore/net/QUICNetVConnection.cc
index 9819b51..a941336 100644
--- a/iocore/net/QUICNetVConnection.cc
+++ b/iocore/net/QUICNetVConnection.cc
@@ -52,15 +52,11 @@ static constexpr uint32_t MINIMUM_INITIAL_CLIENT_PACKET_SIZE = 1200;
 
 ClassAllocator<QUICNetVConnection> quicNetVCAllocator("quicNetVCAllocator");
 
-QUICNetVConnection::QUICNetVConnection() : UnixNetVConnection()
-{
-  SET_HANDLER((NetVConnHandler)&QUICNetVConnection::state_pre_handshake);
-}
-
 // XXX This might be called on ET_UDP thread
 void
 QUICNetVConnection::init(UDPConnection *udp_con, QUICPacketHandler *packet_handler)
 {
+  SET_HANDLER((NetVConnHandler)&QUICNetVConnection::state_pre_handshake);
   this->_packet_transmitter_mutex = new_ProxyMutex();
   this->_frame_transmitter_mutex  = new_ProxyMutex();
   this->_udp_con                  = udp_con;

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

Mime
View raw message